Madeleine
Madeleine

Reputation: 2182

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?

Upvotes: 9

Views: 1996

Answers (2)

the_mandrill
the_mandrill

Reputation: 30832

I have experienced similar problems in C++ when I've built a solution from a number of projects that had different combinations of /Zi and /ZI flags which specifies the PDB file format (see docs)

Upvotes: 1

Saftpresse99
Saftpresse99

Reputation: 979

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.

Upvotes: 4

Related Questions