ASP.NET:在崩溃转储中显示错误的代码
问题描述:
因此,我一直在努力的一个webapp已经破产,并且我做了一些修复......它仍然崩溃,但是在YSOD中它向我展示了旧代码。我从VS 2005 IDE运行这个。它不会触及任何断点,并且会在249行崩溃,这是明确注释掉的。我清除了我的调试/释放文件夹并重建它;重新启动IIS(以防万一);这会导致什么?ASP.NET:在崩溃转储中显示错误的代码
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"));
答
当前代码可能没有编译,因此DLL中的元数据是针对您的旧代码的。
你是否也使用VS的内置Web服务器,或者只是IIS?听起来像影子复制问题。 – cfeduke 2008-10-22 15:10:33