Unhandled exceptions cause ASP. NET-based applications to exit unexpectedly

Source: Internet
Author: User

For more information, see http://q.cnblogs.com/q/34874/.

W3wp.exe at the site will be accidentally terminated

EventLog information:

An unhandled exception occurred and the process was terminated.

Application ID: DefaultDomain

Process ID: 43644

Exception: System. Runtime. Serialization. SerializationException

Message: Unable to find assembly 'lucene. Net, Version = 2.9.4.1, Culture = neutral, PublicKeyToken = 85089178b9ac3181 '.

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 [] attributes, Object [] typeInformationA, Int32 [] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray attributes)

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. AppDomain. Deserialize (Byte [] blob) at System. AppDomain. UnmarshalObject (Byte [] blob)

 

The specific causes and solutions are as follows:

Http://support.microsoft.com/kb/911816

This problem occurs because the Default policy for unhandling exceptions has been changed in. NET Framework 2.0. By default, the policy for unhandling exceptions is to end the working process.
In Microsoft. NET Framework 1.1 and Microsoft. NET Framework 1.0, unprocessed exceptions on managed threads are ignored. Unless you attach a debug program to capture exceptions, you may not be aware of the error.
ASP. NET uses the Default policy for unhandled exceptions in. NET Framework 2.0. When an unhandled exception is thrown, ASP. NET-based applications unexpectedly exit.
If an exception occurs in the request context, the above action will not occur. Such exceptions are still caused HttpExceptionObject processing and packaging. Exceptions in the request context do not end the working process. However, unprocessed exceptions outside the request context (such as exceptions in the timer thread or callback function) may cause the worker process to end.

Install httpmodule: http://unhandledexception.codeplex.com/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.