如何调试此错误:“找不到或不匹配iisexpress.exe的调试信息"? [英] How can I debug this error: 'Debugging information for iisexpress.exe cannot be found or does not match'?

查看:273
本文介绍了如何调试此错误:“找不到或不匹配iisexpress.exe的调试信息"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在一个MVC 5代码优先项目上工作了几个月,而且(貌似)一无所获,Visual Studio拒绝调试并给了我一些奇怪的错误.

I've been working on an MVC 5 code first project for a few months and (seemingly) out of nowhere, Visual Studio is refusing to debug and giving me some strange errors.

当我尝试运行应用程序 Ctrl + F5 时,它运行正常,但浏览器从未超出加载阶段,浏览器选项卡中仍然有风车,但该应用程序永远不会加载.

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.

当我尝试调试应用程序 F5 时,它可以正常运行,但随后出现2个错误,首先是Debugging information for iisexpress.exe cannot be found or does not match. Cannot find or open the PDB file.,然后是Process with an Id of xxxx is not running.

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 ) ,使用其他数据库名称,卸载VS扩展,执行所有Windows更新,修复VS安装,甚至完全重新安装VS.似乎没有任何帮助.

I've tried loading symbols from MS (https://stackoverflow.com/a/8138518/1778169), using a different database name, uninstalling VS extensions, performing all Windows Updates, repairing the VS installation and even reinstalling VS entirely. Nothing seems to help.

我对PDB文件不是很熟悉,但是我没有做任何有意更改的操作,它们似乎在正确的位置:

I'm not very familiar with PDB files, but I have done nothing knowingly to change this, and they seem to be in the right place:

我的想法不多了,但我真的想避免在可能的情况下重新安装Windows.

I am running out of ideas, but really want to avoid a Windows reinstall if possible.

这只发生在这个项目中,因此问题似乎出在项目本身,而不是安装上.但是我不知道从哪里开始调试此问题或寻找解决方案.

It's only happening in this one project, so the problem would seem to be with the project itself, not the installation. But I have no idea where to start debugging this problem, or looking for a solution.

可能相关

我尝试在自定义域上运行该应用程序(在hosts文件和IIS Express的ApplicationHosts.config文件中设置).为了解决此问题,我将这些设置恢复为默认的localhost:[port].这似乎没有什么区别,但我想以防万一.

I tried running the app on a custom domain (set up in the hosts file and IIS Express's ApplicationHosts.config file). In an attempt to solve this problem I reverted these settings back to the default localhost:[port]. This doesn't seem to have made any difference, but thought I should mention it just in case.

推荐答案

我的问题是在项目属性"中"Web"部分的调试器"部分中选中了本机代码"框.

My problem was that the Native Code box was ticked in the Debuggers section of the Web section in Project Properties.

我不知道这是怎么被打勾的,我当然从来没有打勾.

I don't know how this came to be ticked, I certainly never ticked it.

无论哪种方式,取消选中此框都可以解决我的问题.

Either way, unticking this box solved my problem.

这篇关于如何调试此错误:“找不到或不匹配iisexpress.exe的调试信息"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆