Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 crashes on edit and continue

In Visual Studio 2015 Enterprise Edition, if I put a breakpoint in the code, and and code into an IF statement, I get a fatal error:

A fatal error has occurred trying to apply code changes and debugging needs to be terminated. Operation not supported. Unknown error: 0x800004005.

Visual Studio then crashes.

I am not sure what could be causing the problem or where to look. Any ideas?

like image 357
Madeleine Avatar asked Nov 30 '15 11:11

Madeleine


1 Answers

I had the same problem, but for me i found a solution. In one of our referenced assemblies we had a * in the assembly version field. So check all referenced assemblies/class libraries. Open project properties/Application/Assembly Information and type in the Assembly version and File version boxes 1 0 0 0 for example. For me it solves the E&C fatal error.

like image 140
Saftpresse99 Avatar answered Sep 22 '22 05:09

Saftpresse99