所以我一直在开发的一个 web 应用程序坏了,我做了一些修复......它仍然崩溃,但在 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"));