ASP.NET:故障转储中显示错误代码

发布于 2024-07-06 23:29:12 字数 735 浏览 7 评论 0原文

所以我一直在开发的一个网络应用程序坏了,我做了一些修复...它仍然崩溃,但在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一页 2024-07-13 23:29:12

当前代码可能未编译,因此 DLL 中的元数据适用于您的旧代码。

The current code probably did not compile, therefore the metadata in the DLL is for your old code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文