Questions tagged as '.net'

3
answers

Error when signing a Hash on SHA256 using Digital Certificate

Returning Invalid Algorithm Specified error, when will it be signed, how to proceed? Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJEmpresa.Text + Me.txtCNPJSoftwareHouse.Text) Dim csp As RSACryptoServiceProvider = DirectCast(Certificado.Priva...
asked by 02.10.2015 / 21:23
1
answer

Update Mongodb in array

{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ {...
asked by 25.08.2015 / 21:14
1
answer

More performative way to return data to View

In a view where we return a list of objects, and we need to demonstrate the quantity, such as a small report, using some conditions. What is the most performative way to return data to view ? Explaining better. When we return an obj...
asked by 24.07.2015 / 19:40
1
answer

Application pool hangs and does not return application

I have a MVC4 system in .NET 4.0 that is running in IIS 7. It generates the following error in the Event Viewer: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/2/2015 11:23:25 AM Event time (UTC): 9/2/...
asked by 02.09.2015 / 16:38
1
answer

Remove namespace or full names

My question is if there is any shortcut, command or function of Visual Studio that removes the namespace or full names of classes, for example: to add a Data Annotation without making a using you have to put the complete namespace System. (), Bu...
asked by 22.05.2015 / 15:41
1
answer

NetFramework dependencies in the project folder?

I would like to know if it is possible to embed somehow the .dll that my project uses NetFramework in its own folder. This would not require NetFramework to be installed on the client computer, since all dependencies would be in the progr...
asked by 12.05.2015 / 18:05
1
answer

C # MySQL transaction in different classes and methods

How do I interact with a transaction between two methods that are in different classes? In my method where I open the transaction it is as follows: public string InserirFuncionarioM(FuncionariosDTO Funcionario) { MySqlTransacti...
asked by 19.04.2015 / 14:54
1
answer

Property of a class that belongs to another context in the Entity Framework

I have a class called Locker that has the following property: public virtual ICollection<LockerReserve> Reserves { get; set; } The problem is that LockerReserve belongs to a context other than Locker. An exception is thrown whenever I...
asked by 30.11.2015 / 13:29
1
answer

Change color of a Row when VB .Net expires

I have a database with the following tables: Data Emissão and Data Expira . So I want that when the date of Data expira is equal to or greater than Data Emissao , row change color to Vermelho and when i...
asked by 29.04.2015 / 20:36
1
answer

How to kill a specific user process on Windows Server?

I have a C # application that ultimately needs to kill a user process that ran, but as I am on a Terminal Server (Windows Server) and there are multiple logged in users, when I put the command to kill the process Process[] processo = Process.G...
asked by 11.08.2015 / 18:59