locked
ASP.net application crashes for no reason (EVENT ID: 1334) RRS feed

  • Question

  • User2076936048 posted

    Hi Folks,

    This is really eating my head. My asp.net application (framework 3.5) in the production server (Windows Server 2008 R2 with IIS7) suddenly started crashing for no reason. From the event log, I got the error as below:

     

    Log Name:      Application

    Source:        ASP.NET 2.0.50727.0

    Date:          1/4/2012 4:23:06 PM

    Event ID:      1334

    Task Category: None

    Level:         Error

    Keywords:      Classic

    User:          N/A

    Computer:      computername

    Description:

    An unhandled exception occurred and the process was terminated.

     

    Application ID: 

     

    Process ID: 27364

     

    Exception: System.NullReferenceException

     

    Message: Object reference not set to an instance of an object.

     

    StackTrace:    at CAPTURE.DAL.TertiaryProductCategory.Finalize() in C:\blabla\blabla\blabla.DAL\TertiaryProductCategory.cs:line 41

    Event Xml:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

      <System>

        <Provider Name="ASP.NET 2.0.50727.0" />

        <EventID Qualifiers="49152">1334</EventID>

        <Level>2</Level>

        <Task>0</Task>

        <Keywords>0x80000000000000</Keywords>

        <TimeCreated SystemTime="2012-01-04T08:23:06.000Z" />

        <EventRecordID>364294</EventRecordID>

        <Channel>Application</Channel>

        <Computer>servername</Computer>

        <Security />

      </System>

      <EventData>

        <Data>An unhandled exception occurred and the process was terminated.

     

    Application ID: 

     

    Process ID: 27364

     

    Exception: System.NullReferenceException

     

    Message: Object reference not set to an instance of an object.

     

    StackTrace:    at blabla.DAL.TertiaryProductCategory.Finalize() in C:\blabla\blabla\blabla.DAL\TertiaryProductCategory.cs:line 41</Data>

      </EventData>

    </Event>

     

     

    Please note that, there is not code issue on the line mentioned in the event log.. The application has been running for more than a year successfully.. the issue started from last two days on.. I guess, the error occurs when connecting to database.. Also note that, its not happening all the time, four or five times a day..

     

    I would appreciate for any kind of help on this regards..

     

     

    Thursday, January 12, 2012 8:51 PM

All replies

  • User-1976337891 posted

    it is clear that objects being used in blabla.DAL.TertiaryProductCategory.Finalize() method has null value.

    post your code of the TertiaryProductCategory class, so that we can identify the actual problem.

    check http://www.experts-exchange.com/Software/Server_Software/Application_Servers/.Net/Q_24747536.html

    Thursday, January 12, 2012 11:29 PM
  • User2076936048 posted

    Hi,

    Please note that the error is no way related to null, it is showing wrong error. Because, the application is running perfectly with IIS 6. This is purely related to an IIS 7 error.

    Monday, January 16, 2012 1:23 AM