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

标签 asp.net debugging iis event-log

我在事件日志中看到以下错误。它来自我们的 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/

    相关文章:

    c# - 如何从 WCF 服务响应中删除 outerXML

    c# - 错误 :Index (zero based) must be greater than or equal to zero and less than the size of the argument list

    c# - IIS session 挂起 - 如何解决 "website leaking resources to the finalizers"?

    iis - VS2010在打开项目时引发异常

    javascript - 属性 'WebForm_AutoFocus' 的值为 null 或未定义,不是 Function 对象

    c# - 枚举属性、Web API、JSON 反序列化和拼写错误

    javascript - 如何调试 iPad 上 Web View 中运行的 Javascript?

    debugging - emacs 调试器 : how can I step-out, 跳过?

    python - 真的很奇怪(mod)_python问题

    c# - ASP.NET MVC4 + Razor on Mono + EF 6 DateTime 崩溃