Консольное приложение .NET Core аварийно завершает работу при отладкеC#

Место общения программистов C#
Ответить
Гость
 Консольное приложение .NET Core аварийно завершает работу при отладке

Сообщение Гость »


Дня 2-3 назад я обновил все пакеты Nuget и проверил — всё работает.
Затем обновился с

Код: Выделить всё

System.Data.SqlClient
to

Код: Выделить всё

Microsoft.Data.SqlClient
and configured what needed for the connection to work - everything worked.
Then I upgraded from .NET Core 7 to .NET 8 and everything worked.
Today, I'm trying to debug the code for a problem, and it crashes with the error:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core. The program '[42000] console.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.

In the console window, I get this:

(process 42000) exited with code -1073741819.

I have tried everything I have found here on stack and on Microsoft community.
Restarted VS, Restarted computer, reinstalled .NET 8 SDK, reinstalled VS, even tried to open need solution with no code in it beside "HELLO WORLD"
But nothing is working.
Please advice
Update #1 - file:

Код: Выделить всё



SAK
SAK
SAK
SAK



Exe
net8.0
enable
enable
AnyCPU



True














Always
















Always




Update2 - the cause
Eset anti virus is to blame. Their deep inspection module stoped all cmd functionality in the computer


Источник: https://stackoverflow.com/questions/781 ... s-on-debug
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»