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..