Questions tagged as 'c#'

0
answers

Error Object reference not set to an instance of an object. Microsoft.Office.Interop.Word.Application

I am developing a code to convert a word document into pdf. When I run the application through Visual Studio, the conversion is performed and no error is displayed. When I run the application on the server where IIS is installed, the document is...
asked by 20.01.2016 / 17:32
1
answer

dialog messages triggered from the ViewModel via the DialogCoordinator

I came across a problem working on a WPF project where I use "MVVM Light Toolkit" and "MahApps.Metro". I'm trying to take advantage of the "DialogCoordinator" feature provided by "MahApps.Metro" to trigger dialog messages from my ViewModels....
asked by 24.02.2016 / 17:37
1
answer

Create key with more than one file and delete all at once

Can I create in the app.config, a key pointing to multiple directories and in the code pointing to that key and deleting all directories at once? Each directory should be separated by ";"? Like this: <add key="Dir_BD" value="C:\Teste_Zip\De...
asked by 01.03.2016 / 23:13
1
answer

Define a property within a BsonDocument

Save Galley! I'm working with C # MongoDB .Net Driver, and have something I'm not understanding in the queries, follow the example: var dataBase = mongoClient.GetDatabase(dbName); var transactionsColl = dataBase.GetCollection<Bso...
asked by 02.03.2016 / 18:25
1
answer

How do I check the browser type, version and JavaScript support?

I need to identify the browser, browser version and if it is enabled to execute javascript. In previous versions of Asp.Net I checked Global.asax, using the command Request.Browser.JavaScript but this command is set to [deprecated] in the...
asked by 17.02.2016 / 13:19
2
answers

ASP.NET MVC with FormsAuthentication

I have an Asp.net MVC application with FormsAuthentication, but the need arose to release a page to the site visitor or a page is released to everyone and the rest of the controllers falls on the login screen, is it possible? / p>     
asked by 17.02.2016 / 11:55
1
answer

Fill in the inputs of an iframe

Good afternoon. I would like to know if it is possible to populate iframe inputs through JavaScript. <iframe src="http://frame.com"width="100%" height="800" id="frame"></iframe> I know the input name of the iframe and thought ab...
asked by 13.01.2016 / 16:20
1
answer

The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?

I have a problem when publishing or compiling the project, the following error appears:    The type or namespace name 'AjaxControlToolkit' could not be found in   the global namespace (are you missing an assembly reference? Does anyone kn...
asked by 15.01.2016 / 21:28
2
answers

Error when inserting in batch using OracleCommand

I need to optimize a load application that runs through a database and writes to another database, but that has to be done through a Windows Forms application. I am doing this using ArrayBindCount of OracleCommand , but it is retu...
asked by 15.01.2016 / 17:09
0
answers

Download and open compressed files

Personal I have the following code in an aspx page that compresses files and then downloads them ... protected void Page_Load(object sender, EventArgs e) { try { JuntarArquivosAprovados(startPa...
asked by 28.12.2015 / 21:13