none
.NET Runtime 2.0 Error Reporting # 5000 EventType clr20r3

    General discussion

  • Hi everyone. I made an Visual Studio 2005 Win Application only for testing a connection to a Oracle 10g database (i only open a connection using the OracleConnection, check the status and then close it).


    I´m using the Oracle .NET provider version 2.102.2.20.


    I tested the app in different PC´s with windows XP OS and everything worked fine, but when i tried to deploy the app in a Windows 2003 server didn´t run. I checked the Event viewer and found this message:

    Event Type:    Error
    Event Source:    .NET Runtime 2.0 Error Reporting
    Event Category:    None
    Event ID:    5000
    Date:        29/06/2007
    Time:        12:35:23 p.m.
    User:        N/A
    Computer:    ESTADISERV
    Description:
    EventType clr20r3, P1 test_connect_oracle.exe, P2 1.0.0.0, P3 468543c3, P4 test_connect_oracle, P5 1.0.0.0, P6 468543c3, P7 e, P8 e9, P9 system.invalidoperationexception, P10 NIL.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 63 00 6c 00 72 00 32 00   c.l.r.2.
    0008: 30 00 72 00 33 00 2c 00   0.r.3.,.
    0010: 20 00 74 00 65 00 73 00    .t.e.s.
    0018: 74 00 5f 00 63 00 6f 00   t._.c.o.
    0020: 6e 00 6e 00 65 00 63 00   n.n.e.c.
    0028: 74 00 5f 00 6f 00 72 00   t._.o.r.
    0030: 61 00 63 00 6c 00 65 00   a.c.l.e.
    0038: 2e 00 65 00 78 00 65 00   ..e.x.e.
    0040: 2c 00 20 00 31 00 2e 00   ,. .1...
    0048: 30 00 2e 00 30 00 2e 00   0...0...
    0050: 30 00 2c 00 20 00 34 00   0.,. .4.
    0058: 36 00 38 00 35 00 34 00   6.8.5.4.
    0060: 33 00 63 00 33 00 2c 00   3.c.3.,.
    0068: 20 00 74 00 65 00 73 00    .t.e.s.
    0070: 74 00 5f 00 63 00 6f 00   t._.c.o.
    0078: 6e 00 6e 00 65 00 63 00   n.n.e.c.
    0080: 74 00 5f 00 6f 00 72 00   t._.o.r.
    0088: 61 00 63 00 6c 00 65 00   a.c.l.e.
    0090: 2c 00 20 00 31 00 2e 00   ,. .1...
    0098: 30 00 2e 00 30 00 2e 00   0...0...
    00a0: 30 00 2c 00 20 00 34 00   0.,. .4.
    00a8: 36 00 38 00 35 00 34 00   6.8.5.4.
    00b0: 33 00 63 00 33 00 2c 00   3.c.3.,.
    00b8: 20 00 65 00 2c 00 20 00    .e.,. .
    00c0: 65 00 39 00 2c 00 20 00   e.9.,. .
    00c8: 73 00 79 00 73 00 74 00   s.y.s.t.
    00d0: 65 00 6d 00 2e 00 69 00   e.m...i.
    00d8: 6e 00 76 00 61 00 6c 00   n.v.a.l.
    00e0: 69 00 64 00 6f 00 70 00   i.d.o.p.
    00e8: 65 00 72 00 61 00 74 00   e.r.a.t.
    00f0: 69 00 6f 00 6e 00 65 00   i.o.n.e.
    00f8: 78 00 63 00 65 00 70 00   x.c.e.p.
    0100: 74 00 69 00 6f 00 6e 00   t.i.o.n.
    0108: 20 00 4e 00 49 00 4c 00    .N.I.L.
    0110: 0d 00 0a 00               ....   



    Hope you have an answer to this issue.

    Thanks in advance.

    Ezekiel
    Friday, June 29, 2007 8:07 PM

Answers

  • Okay, it crashed on an InvalidOperationException.  Debug your app on Windows 2003 server to find out why.
    Friday, June 29, 2007 10:07 PM
    Moderator

All replies

  • Okay, it crashed on an InvalidOperationException.  Debug your app on Windows 2003 server to find out why.
    Friday, June 29, 2007 10:07 PM
    Moderator
  • Hi, i have similar problem with application called remaximporter. it crashes after start imediatelly. I find next record in aplication error log:

     

    source:.NET Runtime 2.0 Error Reporting

    ID:5000

     

    EventType clr20r3, P1 remaximporter.exe, P2 1.1.4.0, P3 45b67331, P4 remaximporter, P5 1.1.4.0, P6 45b67331, P7 f, P8 36, P9 system.typeinitialization, P10 NIL.

     

    0000: 63 00 6c 00 72 00 32 00   c.l.r.2.
    0008: 30 00 72 00 33 00 2c 00   0.r.3.,.
    0010: 20 00 72 00 65 00 6d 00    .r.e.m.
    0018: 61 00 78 00 69 00 6d 00   a.x.i.m.
    0020: 70 00 6f 00 72 00 74 00   p.o.r.t.
    0028: 65 00 72 00 2e 00 65 00   e.r...e.
    0030: 78 00 65 00 2c 00 20 00   x.e.,. .
    0038: 31 00 2e 00 31 00 2e 00   1...1...
    0040: 34 00 2e 00 30 00 2c 00   4...0.,.
    0048: 20 00 34 00 35 00 62 00    .4.5.b.
    0050: 36 00 37 00 33 00 33 00   6.7.3.3.
    0058: 31 00 2c 00 20 00 72 00   1.,. .r.
    0060: 65 00 6d 00 61 00 78 00   e.m.a.x.
    0068: 69 00 6d 00 70 00 6f 00   i.m.p.o.
    0070: 72 00 74 00 65 00 72 00   r.t.e.r.
    0078: 2c 00 20 00 31 00 2e 00   ,. .1...
    0080: 31 00 2e 00 34 00 2e 00   1...4...
    0088: 30 00 2c 00 20 00 34 00   0.,. .4.
    0090: 35 00 62 00 36 00 37 00   5.b.6.7.
    0098: 33 00 33 00 31 00 2c 00   3.3.1.,.
    00a0: 20 00 66 00 2c 00 20 00    .f.,. .
    00a8: 33 00 36 00 2c 00 20 00   3.6.,. .
    00b0: 73 00 79 00 73 00 74 00   s.y.s.t.
    00b8: 65 00 6d 00 2e 00 74 00   e.m...t.
    00c0: 79 00 70 00 65 00 69 00   y.p.e.i.
    00c8: 6e 00 69 00 74 00 69 00   n.i.t.i.
    00d0: 61 00 6c 00 69 00 7a 00   a.l.i.z.
    00d8: 61 00 74 00 69 00 6f 00   a.t.i.o.
    00e0: 6e 00 20 00 4e 00 49 00   n. .N.I.
    00e8: 4c 00 0d 00 0a 00         L..... 

     

    Charles 

    Wednesday, July 11, 2007 1:59 PM
  • Same advice: debug your code.  System.TypeInitializationException is thrown when a static constructor throws an exception.  Look at InnerException property of the exception to find the cause.
    Wednesday, July 11, 2007 2:17 PM
    Moderator
  • Hello...

     

    Here's my event viewer contents: (any ideas?)

     

    EventType clr20r3, P1 icecream.exe, P2 1.0.0.0, P3 46891e2e, P4 microsoft.practices.compositeui, P5 1.0.51205.0, P6 44b7bfa0, P7 366, P8 5b, P9 vkg1ybsh5s3yes2c1lc5sekgah34otp2, P10 NIL.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Tuesday, July 17, 2007 9:34 PM
  • I am having the same exact error.  Anyone have any ideas.

     

    Monday, August 13, 2007 9:13 PM
  • Again, same advice.  You could visit the Help and Support Center or debug your code.  The latter would be quicker.
    Monday, August 13, 2007 9:32 PM
    Moderator
  • Its a bug in your code, so you need to debug - the reason you get the event is because an exception is being thrown, but hasnt been caught - i.e. its an unhandled exception, and the default behaviour in .Net 2 for unhandled exceptions is to terminate the application and report the event.

    You can always add in a handler to pickup unhandled exceptions, but the root cause is the same - its a bug in your application code.

    Code Snippet

    AppDomain.CurrentDomain.UnhandledException += new  UnhandledExceptionEventHandler(WorkerThreadHandler);



    public void WorkerThreadHandler(object sender, UnhandledExceptionEventArgs args)
            {
                if (!(args.ExceptionObject is ThreadAbortException))
                {
                    Exception exc = args.ExceptionObject as Exception;
                    MessageBox.Show(exc.ToString());
                }
            }


    Hope this helps
    Tuesday, August 14, 2007 1:12 PM
  • Hi

     

    How can you say that it is the app bug since application is running ok on many workstations. I have encounter same issue today with 2 HP preloaded winxp sp2 with the follow crash.

     

    Event Type: Error
    Event Source: .NET Runtime 2.0 Error Reporting
    Event Category: None
    Event ID: 5000
    Date:  8/18/2007
    Time:  11:06:38 AM
    User:  N/A
    Computer: HP-C2E43C2D7CCC
    Description:
    EventType clr20r3, P1 fireaw~1.exe, P2 1.0.5.0, P3 458ba207, P4 fireaware, P5 1.0.5.0, P6 458ba207, P7 19, P8 c6, P9 system.invalidoperationexception, P10 NIL.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:

     

    --

     

    The same application is running fine on my notebook (development). A strange thing is that  NET2.O Patch cannot be installed on same PC.

     

    I dont know what do, suggesting debug code is not helping since it is not happening on development.

     

    Any suggest will help me alot

     

    sanonghp@yahoo.com

     

    thanks,

     

     

     

     

    Saturday, August 18, 2007 8:41 AM
  • Hi - ok it's an assumption in this case as the reported executable in the clr20r3 event looks like application code "oracle_test_connect.exe".
    Only way to know for sure is to debug the code carefully and implement the event handler.

    Your event looks like some 3rd party firewall failure - but just a guess there

    Regards
    Mark
    Tuesday, August 28, 2007 8:35 AM
  •  

    Good day!

     

    I have encountered that same error. I have developed a VB.Net 2005 application to execute Excel macros and generate reports. The said application is called by a windows service to execute.

     

    Although I have developed also the windows service-equivalent of the said application but I was having problems in terms of executing the Excel macros.

     

    The application uses threading so that whenever it would encounter errors (ex. macros would hang sometimes), the application would still continue processing other report-related files.

     

    Please refer to the following URLs, below:

    http://www.geocities.com/vrcode8/EventLogErrorJan202008.JPG

    http://www.geocities.com/vrcode8/NGPLogFileJan202008.JPG

    http://www.geocities.com/vrcode7/macroCode.JPG

     

    The 1st URL, tells that the said error occurred. Item 1 indicates the date and time. Item 2 indicates the type of error. Now when I checked the error log for the said date and time, the 2nd URL as indicated by Item 1 reveals that the application was having problems executing the particular macros. For the 3rd URL, when I checked the macro code, I discovered that 1 line of code needs to be removed. Although if you execute the macro manually there was never any problem, but when call by other application,  the said line of code would become the issue.

     

    Please analyze that with that 1 particular line of code, it generated the error. The application routine for executing the macro is inside the try...catch clause, but still it generated an uncaught error.

     

    Thanks a lot.

     

     

    Francis

     

    Monday, January 21, 2008 8:27 AM
  • Please make sure that the version of the odp.net gac assembly you're currently loading to connect to  the  oracle  database  is the same  with  the one that is configured in the section of the machine.config and web.config in the .net framework installation folder, the section should be, for example:
    <system.data>
        <DbProviderFactories>
          <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess,  Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" />
          ...
        </DbProviderFactories>
      </system.data>

    Problem will occur if you install odp.net 11g first and at a later time you install oracle database 11g on the same computer, because the installation of oracle database 11g will change the Version attribute to "2.111.6.0" , but the actual version of odp.net gac assembly  you're  using  should be "2.111.6.20", so you have to change it back to "Version=2.111.6.20" manaully, else similar error may be encountered(and i'm not sure whether this is a bug of oracle 11g r1).

    Good luck.

     
    Sunday, February 17, 2008 4:42 PM
  • Same error:

    THe application works fine on serveral machines. I have all try catch block everywhere.  The weird part is this error only shows in the event log. When you try to run the executable, nothing happens.

    runs fine in dev, xmp, 2003,  only on certain XP machines (completly updated, the same as other xp boxes this has worked on)


    Rex Whitten
    Wednesday, June 25, 2008 9:09 PM
  • Hello same error here.  I have developed a windows service with Visual Studio 2003.  It works great on the development box but when I try it on 2K3 server it coughs up this event:

    Event Type:      Error

    Event Source:   .NET Runtime 2.0 Error Reporting

    Event Category:  None

    Event ID:          5000

    Date:                6/25/2008

    Time:                2:47:04 PM

    User:                N/A

    Computer:        AISWEBDEV

    Description:

    EventType clr20r3, P1 umon.exe, P2 1.0.0.0, P3 486275a7, P4 microsoft.visualbasic, P5 8.0.0.0, P6 471ee7ea, P7 3e8, P8 221, P9 pszqoadhx1u5zahbhohghldgiy4qixhx, P10 NIL.

     

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Data:

    0000: 63 00 6c 00 72 00 32 00   c.l.r.2.

    0008: 30 00 72 00 33 00 2c 00   0.r.3.,.

    0010: 20 00 75 00 6d 00 6f 00    .u.m.o.

    0018: 6e 00 2e 00 65 00 78 00   n...e.x.

    0020: 65 00 2c 00 20 00 31 00   e.,. .1.

    0028: 2e 00 30 00 2e 00 30 00   ..0...0.

    0030: 2e 00 30 00 2c 00 20 00   ..0.,. .

    0038: 34 00 38 00 36 00 32 00   4.8.6.2.

    0040: 37 00 35 00 61 00 37 00   7.5.a.7.

    0048: 2c 00 20 00 6d 00 69 00   ,. .m.i.

    0050: 63 00 72 00 6f 00 73 00   c.r.o.s.

    0058: 6f 00 66 00 74 00 2e 00   o.f.t...

    0060: 76 00 69 00 73 00 75 00   v.i.s.u.

    0068: 61 00 6c 00 62 00 61 00   a.l.b.a.

    0070: 73 00 69 00 63 00 2c 00   s.i.c.,.

    0078: 20 00 38 00 2e 00 30 00    .8...0.

    0080: 2e 00 30 00 2e 00 30 00   ..0...0.

    0088: 2c 00 20 00 34 00 37 00   ,. .4.7.

    0090: 31 00 65 00 65 00 37 00   1.e.e.7.

    0098: 65 00 61 00 2c 00 20 00   e.a.,. .

    00a0: 33 00 65 00 38 00 2c 00   3.e.8.,.

    00a8: 20 00 32 00 32 00 31 00    .2.2.1.

    00b0: 2c 00 20 00 70 00 73 00   ,. .p.s.

    00b8: 7a 00 71 00 6f 00 61 00   z.q.o.a.

    00c0: 64 00 68 00 78 00 31 00   d.h.x.1.

    00c8: 75 00 35 00 7a 00 61 00   u.5.z.a.

    00d0: 68 00 62 00 68 00 6f 00   h.b.h.o.

    00d8: 68 00 67 00 68 00 6c 00   h.g.h.l.

    00e0: 64 00 67 00 69 00 79 00   d.g.i.y.

    00e8: 34 00 71 00 69 00 78 00   4.q.i.x.

    00f0: 68 00 78 00 20 00 4e 00   h.x. .N.

    00f8: 49 00 4c 00 0d 00 0a 00   I.L.....




    I have googled this for hours and no one seems to have an answer.  PLEASE HELP I CAN'T TAKE THE PAIN HEHE!!!!!!!!!!!!!!
    Thursday, June 26, 2008 1:49 PM
  • Code Snippet

    AppDomain.CurrentDomain.UnhandledException += new  UnhandledExceptionEventHandler(WorkerThreadHandler);



    public void WorkerThreadHandler(object sender, UnhandledExceptionEventArgs args)
            {
                if (!(args.ExceptionObject is ThreadAbortException))
                {
                    Exception exc = args.ExceptionObject as Exception;
                    MessageBox.Show(exc.ToString());
                }
            }

    Hi,

    Does anyone have a VB.NET version of the above code that I can try, I don't seem to be able to convert this and get it to compile?

    Thanks
    Mike
    Monday, August 4, 2008 3:09 PM
  • I'm having the same trouble with this clr20r3 event log error at the moment.
    I've used this bit of vb.net code to catch an error that occurs before my main sub is called, certainly give me more information to work on.


       Sub UnhandledExceptionEventRaised(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
            If e.IsTerminating Then
                Dim o As Object = e.ExceptionObject
                MessageBox.Show("Error: " & o.ToString)
                Debug.WriteLine(o.ToString) ' use EventLog instead
            End If
        End Sub

        Public Sub New()
            MyBase.New()
            AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf UnhandledExceptionEventRaised

            Application.EnableVisualStyles()
            Application.DoEvents()

            'This call is required by the Windows Form Designer.
            InitializeComponent()
        End Sub
    Friday, September 26, 2008 10:20 AM
  • Fixed it :o)

    Turns out on certain system setups, most of the time "winxp pro sp2 .NET framework 2.0" and  "win2003 .NET framework 2.0 (not sure which service pack if any)" that don't have Visual Studio 2005 or above installed) are missed certain dlls that create this error for a variety of different reasons.. I've seen forum posts saying it's due to unregistered dll's, certain form controls that have member variables that needed commenting out and also corrupted .NET framework installs.

    For me it turns out to be a font that was missed out of my setup project, on the above winxp setup (actually running on a virtual machine), it threw an exception during the component initialisation which I identified with the above bit of debug code :o)

    Happy hunting for anyone else trying to work this one out.

    Friday, September 26, 2008 11:05 AM
  •  Hi everyone, I had exactly the same problem EventType clr20r3 ... typeinitialization ...
    I tried to debug it, but since it's during the start of my service - I couldn't.
    Anyway, I looked "deeper" and to my surprise (...) it was my problem. I had some 

    private static readonly Guid _someGuid = new Guid(" "); 

    (static initialization which throws an exception) in my service's class and this is why
    my service could not start properly. I guess an UnhandledExceptionEventHandler would have
    shown the problem earlier but anyway this was way more interesting and I've wasted an hour
    just like that.

    Cheers and happy coding,
    Xaoc

    In fiery flight we would leave this hall...
    Tuesday, October 21, 2008 4:43 PM
  • In my case it was missing ocx file (in my case MSFLXGRD.OCX) to be registered. I found the name of the missing ocx file using DLL show application (http://www.softplatz.com/Soft/Utilities/Drivers/DLL-Show-2000.html)
    Monday, October 12, 2009 12:25 PM
  • Probably you don't even see the exception details. Please check comment on http://malcan.com/EN/Lists/Tips%20and%20tricks/DispForm.aspx?ID=18
    Friday, November 20, 2009 10:54 AM
  • I got the same error like this while running a scheduled task set to run a .net 2.0 console application.
    Check the user permission which is set to run this task. I set the account from which the application is run into Administrators and the error was
    resolved.
    Tuesday, December 22, 2009 8:31 PM
  •  Hi everyone, I had exactly the same problem EventType clr20r3 ... typeinitialization ...
    I tried to debug it, but since it's during the start of my service - I couldn't.
    Anyway, I looked "deeper" and to my surprise (...) it was my problem. I had some 

    private static readonly Guid _someGuid = new Guid(" "); 

    (static initialization which throws an exception) in my service's class and this is why
    my service could not start properly. I guess an UnhandledExceptionEventHandler would have
    shown the problem earlier but anyway this was way more interesting and I've wasted an hour
    just like that.

    Cheers and happy coding,
    Xaoc

    In fiery flight we would leave this hall...


    Hi,

     

    I got the same typeintialisation error on server for some time. But i cant reproduce the same one in my local machine.

    Please help me to reproduce in local machine and how to resolve this issue.

    Thanks,

    K.Ramesh

    Monday, June 28, 2010 12:07 PM
  • We had the same error in a program another developer's program who is no longer with our company. It ran on most of our computers, but not on the client's compueters. It contains a MDI parent form and would get the error right as it starts. I created a new MDI parent form and copied the code to it and made it the starrtup form. The program would load further before the error. It was now getting the error when loading a child form.

    I finally figured out what the issue was. He had added an icon to all the forms, but didn't include it in the project. I removed the icon from the forms and now it runs.

     

    Tony

    Wednesday, June 30, 2010 3:45 PM
  • I am new to vb.net . when i created the windows setup project and installed windows vb.net applcation at client machine. Applicaiton works fine if user is administrator at client side. if user is standerd user this applciation will not work and will give error "Eventtype: Clr20r3  P1:applicaiton.exe P2 1.0.0.0 P3:4c34c703 P4 applicaiton version P5:1.0.0.0.0 P6:4c34c703  P7:a9  P8: e9  P9: system.invalidoperationexception" . I install the same application on development workstation it works even fine in standerd user mode too. This application also works fine in all the computer if you run it under admin mode. I want the application to run in all the client machines in standerd user mode and not in the admin mode.

    Can anyone suggest what might be the problem?

     

    Ravi

    Wednesday, July 7, 2010 9:12 PM
  • Clr20r3

    I am a newbie to VB.NET and faced this problem with one of my applications which talks to the MS Excel Interop components.

    I've googled the problem and found that most of the users who faced this problem had eventually found that it was mostly a problem related to missing dependencies, control malfunction etc. These errors are never caught in try catch or debugging and found only in eventviewer application logs.

    A few of the errors were like -

    Icon not embedded, List box not supported, font got corrupted and the list goes on... 

    In my case, I found the case to be a redundant reference to crystal reports component which I found only after working on the same problem for about 14 hours.

    So, my advice to everyone will be to either catch  the unhandled exceptions or deinstall and install the components (.Net framework versions, DB instance etc) in sequence on a test machine.

    Doing the above may or may not solve your problem as the major reason for this is the enability of MS to handle and show the unhandled exceptions properly.

    Hope these are resolved later.

    Parveen Grover  

    Saturday, August 7, 2010 5:10 PM
  •  

    Hello,

    You may have solved your problem by now, but in my experience, if an application does not load at all, then it means that's crashing before the form "Load" event even takes place.

    This usually means that you are running code in the declarations for the form... ie.

     

    Public Class MyForm
    Private _bob as New Bobling
    Private Sub MyForm_Load(byval sender as Object, Byval e as System.EventArgs) Handles Me.Load
    ...
    ...
    ...
    End Sub
    End Class

    Move the "New" Statement to within a Try-Catch block within the Load Event, and see what the Exception is.

    It worked for me!

    Regards,

    G//

     

    Wednesday, October 27, 2010 1:02 PM
  • Try Procexp.exe on a computer where it doesn't crash to see the DLL dependencies. In my case I had to reinstall Adobe Acrobat Reader -> it might worth a try ...
    Wednesday, April 6, 2011 10:15 AM
  • marc.be's tip above guided me in the right direction but I ended up running Process Monitor while launching the app while it crashed and I was getting a bunch of access denied messages to a directory. Once I gave rights to the directory (in my case everyone needed read permissions) it worked fine. 
    Tuesday, October 30, 2012 6:57 PM
  • I had the same problem running a .net 2.0 application which uses unmanaged libraries on Win Server 2003 R2 with .NET 3.5 installed.

    The exception raised in my case was System.BadFormatException causing this event:

    Event Type:	Error
    Event Source:	.NET Runtime 2.0 Error Reporting
    Event Category:	None
    Event ID:	5000
    Date:		28/12/2012
    Time:		10:15:43
    User:		N/A
    
    Description:
    EventType clr20r3, P1 xxxxxx.exe, P2 3.5.0.0, P3 50dd62f7, P4 xxxxxxx, P5 3.5.0.0, P6 50dd62f7, P7 3e, P8 b, P9 system.badimageformatexception, P10 NIL.

    The problem was that the application was compiled for target platform Any CPU 

    Compiling the same code for target platform x86 with VS2005 fixed the problem.

    Hope it helps




    Friday, December 28, 2012 9:53 AM