Questions tagged as '.net'

0
answers

Could not load file or assembly 'System.Diagnostics.DiagnosticSource, in Heroku

I'm uploading an asp.net core 2.0 application on heroku. But it has the following error in the log:    Unhandled Exception: System.IO.FileLoadException: Could not load file   or assembly 'System.Diagnostics.DiagnosticSource, Version = 4.0.2.1...
asked by 02.03.2018 / 02:30
1
answer

How to create an array with the same size as another array without copying it?

private void InversaoString(string Texto, int Tamanho) { char[] arrChar = Texto.ToCharArray(); char arrChar2; int indice = 0; for(Tamanho = arrChar.Length-1; Tamanho>=0; Tamanho--) {...
asked by 17.02.2018 / 19:08
0
answers

Application runs through visual studio, but does not run when run

I'm using visual studio 2017, I created an application with WPF, the application runs normally within visual studio in debug mode, but if I compile it and run from within the release folder, it does not start. It also does not start if you tr...
asked by 16.02.2018 / 17:48
0
answers

return json c # .net core sql

I am testing with a console application . In it I query the database and would like to return a json file from the result. Is it possible to return the query json without instantiating the object? how can I do this? I tried converti...
asked by 16.02.2018 / 20:19
0
answers

Entity Code First Migrations can not find Microsoft.EntityFrameworkCore.Design

Hello, I'm working on a dotnet 4.5.1 project using EntityFramework with CodeFirst Migrations, I've added 1 new field to an entity and I'm trying to add a new migration, however the following error message appears: N�o foi poss�vel carregar arqu...
asked by 14.02.2018 / 13:49
1
answer

Problem with Ajax URL

Every time I try to call the method of my controller it appears a url different from the one I'm putting in the AJAX url, why this?     
asked by 14.02.2018 / 02:48
1
answer

Read download data using ProgressChanged BackgroundWorker

Okay? I'm very new to programming, I got a project from a launcher with autoupdate ready and just edited a few things. It basically downloads the updates of a game. I already moved with other projects before they used only the WebClient to do...
asked by 19.02.2018 / 03:17
0
answers

Run selenium c # on external server

Good afternoon, Galera. I developed an automation application using Selenium in C # .net webforms , the application logs into a website and returns some information, if the user agrees it sends some information to that site, however when I went...
asked by 22.02.2018 / 16:43
0
answers

ESocial - Event signature invalid. Suggested Actions: Check if event has changed after signing. Verify signature validity

I am trying to send the evtInfoEmpregador event and when querying the batch return is returning the message. <tipo>1</tipo> <codigo>142</codigo> <descricao>Assinatura do evento inválida. Ações Sugeridas: Ve...
asked by 08.02.2018 / 12:39
2
answers

Convert string to DateTime in LINQ

I have a model where all fields are string . I want to convert to DateTime and Double For this I created a new model public class CPUStats { public DateTime Data { get; set; } public Double? Disco { get; s...
asked by 16.03.2016 / 14:41