加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 未处理的IIS异常 – 如何跟踪它

发布时间:2020-12-16 03:43:41 所属栏目:asp.Net 来源:网络整理
导读:我在事件日志中看到以下错误.它来自我们的ASP.Net应用程序.我无法追踪导致错误的原因.任何建议赞赏! 操作系统:Windows Server 2000 WebServer:IIS 6 应用程序:ASP.Net v3.5 错误日志 [MachineName] has logged the following Error for IIS Details: Com
我在事件日志中看到以下错误.它来自我们的ASP.Net应用程序.我无法追踪导致错误的原因.任何建议赞赏!

>操作系统:Windows Server 2000
> WebServer:IIS 6
>应用程序:ASP.Net v3.5

错误日志

[MachineName] has logged the following
Error for IIS

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.

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
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,IMethodCallMessage
methodCallMessage) at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream
stm) at
System.AppDomain.Deserialize(Byte[]
blob) at
System.AppDomain.UnmarshalObject(Byte[]
blob)

解决方法

我创建了一个自定义的无法处理的异常模块,它允许检索有关错误来源的更多信息,以及问题的最终解决方案.

这是一个codeplex项目的链接,它包含一个非公开异常模块的代码:
http://unhandledexception.codeplex.com/SourceControl/changeset/view/80132

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读