IIS Unhandled Exception - How Can I Track It

I see the following error in the event log. This comes from our ASP.Net application. I am having trouble tracking what causes the error. Any suggestions appreciated!

  • OS : Windows Server 2000
  • WebServer : IIS 6
  • Application : ASP.Net v3.5

Error log

[MachineName] logged the following Error for IIS

Details: computer_name = [computer_name] User = not specified Logfile = Application Type = Error EventType = 1 SourceName = ASP.NET 2.0.50727.0 Category = 0 Category String = No specified EventCode = 1334 EventID = -1073740490 TimeGenerated = 20091125101806.000000-360 TimeWritten = 20091125101806 -360 Message = Unhandled exception and this process has been 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 () in 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)
in System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.ReadObjectWithMapTyped (BinaryObjectWithMapTyped entry) in System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.Run () in System.Runtime.Serialization.Formatters.Binary.Obize.inary (HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) when System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.DeserializeComple, BentleMessageClementleManentle BentCheckleMesserlem BesserleMessageCodeManagerCheckleManagerfunctionCodeManager .Remoting.Channels.CrossAppDomainSerializer.DeserializeObject (MemoryStream stm) in System.AppDomain.Deserialize (byte [] blob) in System.AppDomain.UnmarshalObject (byte [] blob)

+6
debugging iis event-log
source share
4 answers

I created a special module for excluded exceptions, which allowed me to get more information about the origin of the error and possible resolution of the problem.

Here is a link to a codeplex project that has code for the exception module: http://unhandledexception.codeplex.com/SourceControl/changeset/view/80132

+3
source share

Try IIS Debug Diagnostic Tools

http://support.microsoft.com/kb/919789

+1
source share

I look at the text "Unable to find assembly" Company.Common, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null '. "

Are you missing a build or a problem with the version?

0
source share

The error says that the assembly was not found. If it is located in the bin folder and formatted correctly, is it possible a permission error?

Does your Company.Common assembly have permissions to read its IIS AppPool identifier?

You can also do a double check to make sure the assembly is listed in the system.web / compilation / assembly section of your web.config.

0
source share

All Articles