gpt4 book ai didi

asp.net - 未处理的 IIS 异常 - 我如何追踪它

转载 作者:行者123 更新时间:2023-12-04 12:25:44 24 4
gpt4 key购买 nike

我在事件日志中看到以下错误。它来自我们的 ASP.Net 应用程序。我无法追踪导致错误的原因。任何建议表示赞赏!

  • 操作系统 : Windows Server 2000
  • 网络服务器 : 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, 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)

    最佳答案

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

    下面是一个 codeplex 项目的链接,该项目包含未处理异常模块的代码:
    http://unhandledexception.codeplex.com/SourceControl/changeset/view/80132

    关于asp.net - 未处理的 IIS 异常 - 我如何追踪它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1799376/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com