未处理的IIS异常 - 如何跟踪它 [英] Unhandled IIS Exception - How can I track it down
问题描述
我在事件日志中看到以下错误。它来自我们的ASP.Net应用程序。我无法追踪导致错误的原因。任何建议赞赏!
I am seeing the following error in the event log. It is coming from our ASP.Net application. I am having trouble tracking down what is causing the error. Any suggestions appreciated!
- 操作系统:Windows Server 2000
- strong> WebServer :IIS 6
- 应用:ASP.Net v3.5
- OS: Windows Server 2000
- WebServer: IIS 6
- Application: ASP.Net v3.5
错误日志
[MachineName]已记录以下
IIS错误
[MachineName] has logged the following Error for IIS
详细信息:ComputerName = [ComputerName]
用户=未指定日志文件=应用程序
类型=错误EventType = 1
SourceName = ASP.NET 2.0.50727.0
Category = 0 CategoryString = Not
指定EventCode = 1334
EventID = -1073740490
TimeGenerated = 20091125101806.000000-360
TimeWritten = 20091125101806.000000-360
消息=发生未处理的异常
,进程
终止。
Details: ComputerName=[ComputerName] User=Not specified Logfile=Application Type=Error EventType=1 SourceName=ASP.NET 2.0.50727.0 Category=0 CategoryString=Not specified EventCode=1334 EventID=-1073740490 TimeGenerated=20091125101806.000000-360 TimeWritten=20091125101806.000000-360 Message=An unhandled exception occurred and the process was terminated.
应用程序ID:DefaultDomain进程
ID:1440异常:
System.Runtime.Serialization.SerializationException
消息:无法查找程序集
'Company.Common,Version = 1.0.0.0,
Culture = neutral,PublicKeyToken = null'。
Application ID: DefaultDomain Process ID: 1440 Exception: System.Runtime.Serialization.SerializationException Message: Unable to find assembly 'Company.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
StackTrace:at
系统.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo
assemblyInfo,String name)at
System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String
objectName,String [] memberNames,
BinaryTypeEnum [] binaryTypeEnumA,
Object [] typeInformationA,Int32 []
memberAssemIds,ObjectReader
objectReader,Int32 objectId,
BinaryAssemblyInfo assemblyInfo,
SizedArray assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters。 Binary .__ BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped
record)at
System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.Run()
at
System.Runtime.Serialization.Formatters .Binary.ObjectReader.Deserialize(HeaderHandler
handler,__BinaryParser serParser,
Boolean fCheck,Boolean
isCrossAppDomain,IMethodCallMessage
methodCallMessage)at
System.Runtime.Serialization.Formatters .Binary.BinaryFormatter.Deserialize(Stream
serializationStream,HeaderHandler
handler,Boolean fCheck,Boolean
isCrossAppDomain,IMethodCallMessage
methodCallMessage)at
System.Runtime.Remoting.Channels在
System.AppDomain.Deserialize(Byte []
blob)在
System.AppDomain.UnmarshalObject(Byte []
).CrossAppDomainSerializer.DeserializeObject(MemoryStream
stm) blob)
StackTrace: at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo
assemblyInfo, String name) at
System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String
objectName, String[] memberNames,
BinaryTypeEnum[] binaryTypeEnumA,
Object[] typeInformationA, Int32[]
memberAssemIds, ObjectReader
objectReader, Int32 objectId,
BinaryAssemblyInfo assemblyInfo,
SizedArray assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped
record) at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser,
Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage
methodCallMessage) at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler
handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage
methodCallMessage) at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream
stm) at
System.AppDomain.Deserialize(Byte[]
blob) at
System.AppDomain.UnmarshalObject(Byte[]
blob)
推荐答案
我创建了一个自定义未处理的异常模块,允许检索更多有关错误的起源以及最终解决问题的方式。
I created a custom unhanded exception module, which allowed retrieval of more information about the origin of the bug, and the eventual resolution of the issue.
这是一个链接到一个编码项目,其代码为一个未经处理的exce ption模块:
http://unhandledexception.codeplex.com/SourceControl/changeset / view / 80132
Here is a link to a codeplex project that has code for an unhanded exception module: http://unhandledexception.codeplex.com/SourceControl/changeset/view/80132
这篇关于未处理的IIS异常 - 如何跟踪它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!