Questions tagged as 'c#'

1
answer

Verify that the 3.5 framework is installed on the machine

I have to perform a C # function that checks that the 3.5 framework is installed on the machine but does not use Registry.LocalMachine.OpenSubKey("Software\Windows\Microsoft.NET\...") , since this function must be used on several different...
asked by 18.03.2016 / 12:09
1
answer

HttpWebRequest.GetResponseAsync is limiting to 2 simultaneous calls

I have an application where clients can download packages that are .zip files with average of 1GB. When starting a download, a new thread is created that will make the request and via stream retrieves part of the bytes and writes to a file....
asked by 17.03.2016 / 20:15
1
answer

Linq with 2 different context using inner join

I would like to query 2 different databases (2 Dbcontext) I have tried in several ways, one of them: I make a pre-query in the context DbMega to recover the officials var FuncionariosLinq = (from Colaborador in dbMega.Funcionarios...
asked by 17.03.2016 / 14:22
0
answers

Error 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in System.Core.dll

I'm trying to debug a C # application and are experiencing this error: Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll 'Emulador AFO.vshost.exe' (CLR v4.0.30319: Emulador AFO.vshost.exe): Loade...
asked by 08.09.2016 / 20:43
0
answers

Publishing C # application [closed]

I created an application in Windows Forms, I published the application to generate the setup and install it on other machines, install the application on the machine and execute it, when I open some form that has call the bank SQL Server does...
asked by 22.08.2016 / 21:33
1
answer

How to traverse a DataSet based on data contained in a DataGridView?

I need to fill in a datagridview that already contains the relation of all the items. This is based on material movement records that are in DataSet . datagridview already has all the items, like for example: A, B, C, D., et...
asked by 23.08.2016 / 01:15
1
answer

How to embed a DLL in a winForms project

I need to incorporate a reference to a winforms project. I clicked on References, I selected the reference and clicked on properties, there I changed the Embed Interop Types property to true. Compiling the solution gives the following erro...
asked by 01.08.2016 / 16:18
0
answers

How to install Npgsql as a data provider for ADO.NET Entity Framework?

I've read everything you can imagine, but I'm out of luck. In Visual Studio 2015 Enterprise update 1, I followed exactly the steps as described in the tutorial on link : I downloaded and installed: Setup_NpgsqlDdexProvider; I added the p...
asked by 01.08.2016 / 01:51
1
answer

Doubt with HandleError asp.net mvc

I'm looking for a way to avoid an error message when the user happens to enter a page that needs a parameter: namespace Projeto.WEB.Controllers { public class ModalidadeController : Controller { // GET: Modalidade publi...
asked by 29.07.2016 / 22:39
1
answer

Problem with Charset between Asp.Net MVC with Entity Framework and SQL Server

I have a problem that all the values that come from the SQL Server database, are with accent problem. When they are direct written words in HTML , it does not give this problem. What is strange is that the words are written corre...
asked by 19.07.2016 / 15:38