我已经在 MVC 5 代码优先项目上工作了几个月,(似乎)突然,Visual Studio 拒绝调试并给了我一些奇怪的错误。
When I try to run the application Ctrl+F5 it builds ok but the browser never gets beyond the loading stage, I still have the pinwheel in the browser tab, but the app never loads.
When I try to debug the applicaiton F5 it builds ok, but then comes up with 2 errors, firstly Debugging information for iisexpress.exe cannot be found or does not match. Cannot find or open the PDB file.
and then Process with an Id of xxxx is not running
.
我尝试从 MS 加载符号(https://stackoverflow.com/a/8138518/1778169 https://stackoverflow.com/a/8138518/1778169)、使用不同的数据库名称、卸载 VS 扩展、执行所有 Windows 更新、修复 VS 安装,甚至完全重新安装 VS。似乎没有什么帮助。
我对 PDB 文件不太熟悉,但我没有做任何有意识地改变这一点的事情,而且它们似乎位于正确的位置:
我已经没有主意了,但真的想尽可能避免重新安装 Windows。
它只发生在这个项目中,所以问题似乎出在项目本身,而不是安装。但我不知道从哪里开始调试这个问题,或者寻找解决方案。
可能相关
我尝试在自定义域上运行该应用程序(在主机文件和 IIS Express 的 ApplicationHosts.config 文件中设置)。为了解决这个问题,我将这些设置恢复为默认值localhost:[port]
。这似乎没有什么区别,但我想我应该提到它以防万一。