ASP.NET Debugging Problem

I create websites in Visual Studio 2010. Recently, I upgraded to a new dev machine running Windows 7 64-bit. Now, when I make changes to the web page, I have to stop debugging, kill cassini and start debugging before the new code takes effect. I did not have this problem in XP.

Things I tried ...

  • compiling debug = "true" in the configuration file
  • options-> Debugging-> Edit and Continue enabled

I'm not sure if this follows dynamic compilation or Edit and Continue - any help would be appreciated.

EDIT

One of my colleagues does not have this problem. It has an identical setting for me, using the same project, the same build configuration (any processor)

+3
source share
3 answers

As it turned out, it was my mistake ... I experienced that the problem with the ultimate "network BIOS" was achieved. I found a message that recommended hacking regedit "HKLM \ Software \ Microsoft \ ASP.NET \ FCNMode = 1" and it basically disables file change notifications. Changing this value to 2 and applying the changes recommended in knowledge base 810886 fixed both problems.

0
source

The reason is due to a change from 32-bit os to 64-bit os. The ability to change code while the application is running is unique to 32-bit code. In a 64-bit executable file, this feature is removed.

" ". . , 64- :

x64 CLR?

: :

, . ​​ " ", (x64 ). x86 Edit Continue.

+3

64-bit applications cannot dynamically change during debugging. To be able to do this, you need to change your build target "x86". Easy!

Just change it (if you really need 64-bit builds).

+2
source

Source: https://habr.com/ru/post/1792625/


All Articles