“Csc.exe” exited with code -1073741819

2020-08-24 02:10发布

Everytime I try to run my code, I am having this error that "Csc.exe" exited with code -1073741819 , I cleaned my solution and restarted Visual Studio with no gain. Can anyone help me?

8条回答
仙女界的扛把子
2楼-- · 2020-08-24 02:29

I want to share my experience here because I had this problem for several days (with VS Studio 2012) and I had MANY MANY difficulties to find the solution !

And my problem was... That I had a virus/malware problem, and the faulty module was BITGUARD !

So if someone has this problem, and goes here searching the solution, I think you must try any free Malware remover program to see if Bitguard should not be your problem !

Regards,

Olivier.

查看更多
Deceive 欺骗
3楼-- · 2020-08-24 02:31

Cleaning and rebuilding the solution will sometimes solve the issue and sometimes won't.

You need to repair Visual Studio. Go to Control Panel -> Programs. Then select your version of Visual Studio you are using and press "Change"(or right click it and press "Change"). When the setup appears, click "Repair".

This solved it for me and several others who have been facing this issue.

查看更多
爷、活的狠高调
4楼-- · 2020-08-24 02:38

I also had this problem, and luckily found a solution.

First off is more of a workaround, but seemed to work. Disable parallel build in Visual Studio (Tools -> Options ->Projects and Solutions -> Build and Run. Change maximum number of parallel builds to 1). This resolved the issue for me, but did not solve the problem.

The issue I had, as obscure as it is, was I had Razer Synapse set up to record mouse and keyboard stats on Visual Studio. Once I disabled this, everything worked perfectly.

查看更多
欢心
5楼-- · 2020-08-24 02:38

I faced same problem. Delete the bin and obj folder in project(s). The try to clean and rebuild the solution. This worked for me.

查看更多
Root(大扎)
6楼-- · 2020-08-24 02:43

I got this error when running from the devenv command. Adding /SafeMode to the command arguments solved my issue which lead me to think one of my install extension/plugins for VS2015 was to blame.

查看更多
Root(大扎)
7楼-- · 2020-08-24 02:46

When our company changed anti-virus software, an application that had not been touched in months suddenly started having the build error "csc.exe" exited with code -532462766..

I used our new AV client to scan the bin folder of the application that wouldn't build. The AV client claimed it was infected with W32.Trojan.Genkd. Uninstalling that AV software allowed it to build as usual. I think a single file got quarantined, preventing the build.

Your options may be these:

  • disinfect the files (assuming it's an actual infection)
  • unquarantine the "infected" files (assuming it's actually safe)
  • uninstall / disable that AV client
  • change AV software

Lastly, you could always comment blocks of code to identify what is causing the false-positive.

查看更多
登录 后发表回答