ASP.NET:故障转储中显示错误代码
所以我一直在开发的一个网络应用程序坏了,我做了一些修复...它仍然崩溃,但在 YSOD 中它向我显示了旧代码。 我从 VS 2005 IDE 运行它。 它不会遇到任何断点,并且会在第 249 行崩溃,该行已被明确注释掉。 我已经清除了调试/发布文件夹并重建了它; 重新启动 IIS(以防万一); 什么会导致这个?
Could not find file 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\map.xml'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find file 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\map.xml'.
Source Error:
Line 248: //XmlDocument xMap = new XmlDocument();
Line 249: //xMap.Load(MapPath("map.xml"));
So a webapp I've been working on broke, and I made some fixes... it still crashes, but in the YSOD it shows me the old code. I'm running this from the VS 2005 IDE. It won't hit any breakpoints, and it crashes on line 249, which is clearly commented out. I've cleared out my debug/release folders and rebuilt it; restarted IIS (just in case); what would cause this?
Could not find file 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\map.xml'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find file 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\map.xml'.
Source Error:
Line 248: //XmlDocument xMap = new XmlDocument();
Line 249: //xMap.Load(MapPath("map.xml"));
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当前代码可能未编译,因此 DLL 中的元数据适用于您的旧代码。
The current code probably did not compile, therefore the metadata in the DLL is for your old code.