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

  • Question

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

     

    Regards,

    Ali

    Thursday, January 5, 2012 7:47 AM

All replies

  • If you suspect that the .NET Framework on the server is corrupt, you can use this verification tool to find out:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    RUn it for .NET Framework 3.5, then post the first 20 lines and last 20 lines of output here for analysis.

    Thursday, January 5, 2012 2:11 PM
  • Hi pvdg42,

    I run the verification tool again framework 3.5, and it was successfully, The log is pasted below:

    ======================================================================
    [01/12/12,10:37:04] Beginning of new SetupVerifier activity logging session
    [01/12/12,10:37:04] Activity log file location: C:\Users\username\AppData\Local\Temp\2\setupverifier_main_01-12-12_10.37.04.txt
    [01/12/12,10:37:04] Error log file location: C:\Users\username\AppData\Local\Temp\2\setupverifier_errors_01-12-12_10.37.04.txt
    [01/12/12,10:37:04] Build created on December 29, 2011
    [01/12/12,10:37:04] Detected operating system: Windows Server 2008 (x86)
    [01/12/12,10:37:04] Install state for .NET Framework 1.0: not installed.
    [01/12/12,10:37:04] Install state for .NET Framework 1.1: not installed.
    [01/12/12,10:37:04] Install state for .NET Framework 2.0: installed with service pack 2.
    [01/12/12,10:37:04] Install state for .NET Framework 3.0: installed with service pack 2.
    [01/12/12,10:37:04] Install state for .NET Framework 3.5: installed with service pack 1.
    [01/12/12,10:37:04] Install state for .NET Framework 4 Client: not installed.
    [01/12/12,10:37:04] Install state for .NET Framework 4 Full: not installed.

    [01/12/12,10:58:45] Not adding product '.NET Framework 1.0' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 1.1' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 2.0' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 3.0' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 3.5' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 4 Client' because it is not currently installed
    [01/12/12,10:58:45] Not adding product '.NET Framework 4 Full' because it is not currently installed
    [01/12/12,10:58:49] Starting verification for product .NET Framework 3.5 SP1
    [01/12/12,10:58:49] Section [Files - .NET Framework 2.0 (Common)] - start parsing entries
    [01/12/12,10:58:49] File C:\Windows\system32\mscoree.dll (version 2.0.50727.3053) is installed on the system
    [01/12/12,10:58:49] File C:\Windows\system32\dfshim.dll (version 2.0.50727.3053) is installed on the system
    [01/12/12,10:58:49] File C:\Windows\system32\mscorier.dll (version 2.0.50727.3053) is installed on the system
    [01/12/12,10:58:49] File C:\Windows\system32\mscories.dll (version 2.0.50727.3053) is installed on the system

    ------

    ------

     Expected Data: 1
     Actual Data: 1
    [01/12/12,10:37:16] Section [Registry GE - .NET Framework 3.5 SP1 (Common)] - stop parsing entries
    [01/12/12,10:37:16] Section [Registry GE - .NET Framework 3.5 SP1 (32-bit)] - start parsing entries
    [01/12/12,10:37:16] Section [Registry GE - .NET Framework 3.5 SP1 (32-bit)] - stop parsing entries
    [01/12/12,10:37:16] Not running action 'Registry GE - .NET Framework 3.5 SP1 (64-bit)' for product '.NET Framework 3.5 SP1' because the OS condition does not match
    [01/12/12,10:37:16] Not running action 'Registry GE - .NET Framework 3.5 SP1 (Wow6432Node)' for product '.NET Framework 3.5 SP1' because the OS condition does not match
    [01/12/12,10:37:16] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - start parsing entries
    [01/12/12,10:37:16] File C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\RedistList\FrameworkList.xml (no version info) is installed on the system
    [01/12/12,10:37:16] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - stop parsing entries
    [01/12/12,10:37:16] Processing custom action 'Custom Action - .NET Framework 2.0 test application'
    [01/12/12,10:37:16] ExecutablePath = 'Netfx20TestApplication.exe'
    [01/12/12,10:37:16] FriendlyName = '.NET Framework 2.0 test application'
    [01/12/12,10:37:16] TimeoutSeconds = '300'
    [01/12/12,10:37:16] WaitOnExit = 'true'
    [01/12/12,10:37:16] Silent = 'true'
    [01/12/12,10:37:16] Launching process 'Netfx20TestApplication.exe' now
    [01/12/12,10:37:16] Process successfully launched. Waiting 300 seconds for it to complete.
    [01/12/12,10:37:17] Process 'Netfx20TestApplication.exe' exited with return code 0
    [01/12/12,10:37:17] Section [Files - .NET Framework netfxperf.dll] - start parsing entries
    [01/12/12,10:37:17] File C:\Windows\system32\netfxperf.dll (version 1.1.4322.573) is installed on the system
    [01/12/12,10:37:17] Section [Files - .NET Framework netfxperf.dll] - stop parsing entries
    [01/12/12,10:37:17] Verification succeeded for product .NET Framework 3.5 SP1

     

     

    regards,

     


    • Edited by Ayyally Thursday, January 12, 2012 3:00 AM
    Thursday, January 12, 2012 2:40 AM
  • Hi,

    I am trying to use the classic asp pool now. I will post the result after monitoring couple days..

    Regards,

    Thursday, January 12, 2012 3:43 AM
  • no luck.... 

    one thing, the server 2008 R2 windows update fails... is this a reason?

    Thursday, January 12, 2012 7:32 AM
  • As .NET Framework 3.5 verifies on the server, it's unlikely you have a .NET Framework issue.

    The best place to get assistance with your web application issue is in the ASP.NET forums, here:

    http://forums.asp.net/


    If you have a Windows Update problem on the server, you can ask about that in a topical Windows Server forum:

    http://social.msdn.microsoft.com/Forums/en-US/category/windowsserver

    • Edited by pvdg42 Thursday, January 12, 2012 3:25 PM
    Thursday, January 12, 2012 3:21 PM
  • Just for the record:

    I have just struggled with ASP.NET 2.0.50727.0/ Event ID 1334 issues and found them to be triggered by a failing Oracle database lookup, ultimately caused by a ORA-01653 error on a separate DBserver.

    Just to show that "unhandled exceptions" can mask a lot of different issues

    Tuesday, July 17, 2012 1:27 PM