代码之家  ›  专栏  ›  技术社区  ›  tsilb

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

  •  0
  • tsilb  · 技术社区  · 16 年前

    所以我一直在研究的一个webapp坏了,我做了一些修正…它仍然崩溃,但在YSOD中,它显示了旧代码。我是从VS2005的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"));
    
    1 回复  |  直到 16 年前
        1
  •  2
  •   oglester    16 年前

    当前代码可能没有编译,因此DLL中的元数据是针对旧代码的。