异常System.BadImageFormatException 标记格式不正确
“/Statics”应用程序中的服务器错误。
--------------------------------------------------------------------------------
方法标记不正确。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.BadImageFormatException: 方法标记不正确。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[BadImageFormatException: 方法标记不正确。]
System.Xml.XmlText.get_ParentNode() +0
System.Xml.XmlLinkedNode.get_NextSibling() +10
System.Xml.XmlNode.get_InnerText() +42
System.Xml.XmlAttribute.get_Value() +7
System.Xml.XmlNamedNodeMap.RemoveNodeAt(Int32 i) +112
System.Xml.XmlAttributeCollection.RemoveNodeAt(Int32 i) +18
System.Xml.XmlNamedNodeMap.RemoveNamedItem(String name) +23
System.Web.Configuration.HandlerBase.GetAndRemoveAttribute(XmlNode node, String attrib, Boolean fRequired) +22
System.Web.Configuration.HandlerBase.GetAndRemoveBooleanAttributeInternal(XmlNode node, String attrib, Boolean fRequired, Boolean& val) +17
System.Web.Compilation.BuildManager.ReadPrecompMarkerFile(String appRoot, Boolean& updatable) +162
System.Web.Compilation.BuildManager.get_IsPrecompiledAppInternal() +41
System.Web.Compilation.BuildManager.Initialize() +330
System.Web.Compilation.BuildManager.InitializeBuildManager() +210
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +317
[HttpException (0x80004005): 方法标记不正确。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +937
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +150
//Statics为我的网站的名字
服务器上的所有站点都报类似的错误,应该不是程序代码的问题,而且以前一直运行正常
尝试删除网站,再添加,无效
尝试iisreset 无效
尝试aspnet_regiis -i无效
在服务器上打开vs2005创建网站,报“格式不正确”的错误,重装VS2005该错误仍然存在
服务器以前运行已经1,2年了,这个网站没有任何改动,但是昨天突然出现这个问题,无法找到原因,求帮助
目前还未尝试重装.net framwork 2.0,重启服务器,因为是生产服务器,所以不能随便重启