我正在Visual Studio 2010中建立网站。 我最近升级到运行Windows 7 64位的新开发机器。 现在,当我对网页进行更改时,我必须停止调试,杀死Cassini,并在新代码生效之前再次开始调试。我在XP中没有这个问题。

我尝试过的东西...

  • 编译debug=“true”在配置文件中
  • 选项 - >调试 - >编辑并继续启用

    我不确定这是否在动态编译或编辑和继续 - 任何帮助下都会受到赞赏。

    编辑

    我的一位同事们没有这个问题。他对我有一个相同的设置,使用相同的项目,相同的构建配置(任何CPU)

有帮助吗?

解决方案 3

As it turns out, this was my fault... I had experienced the dreaded "network BIOS command limit has been reached" issue. I found a post that recommended doing a regedit hack "HKLM\Software\Microsoft\ASP.NET\FCNMode = 1", well this basically turns off File Change Notifications. Changing this value to 2, and applying the changes recommended in knowledge base 810886 fixed both problems.

其他提示

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

This is known as "Edit and Continue". See this question for a good explanation of why this won't work on a 64bit executable:

Why doesn't Edit and Continue work on the x64 CLR?

EDIT: Clarification:

This isn't an issue with the OS, but rather the build of your code. If you have your build configuration set to "Any CPU", it will run under the architecture of your machine (x64 in your case). You should be able to force this to x86 and be able to use Edit and Continue.

64-bit apps can't be dynamically modified during debugging. To be able to do that you'll need to change your your build target 'x86'. Easy!

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top