dcsimg
Results 1 to 3 of 3
  1. #1

    Thread Starter
    Member MicLovin's Avatar
    Join Date
    Jul 2008
    Location
    Under a rock
    Posts
    62

    Resolved [RESOLVED] .NET Runtime 2.0 Error

    I recently created a windows service that starts other applications that I use on windows startup. Basically this service is for virtual computers i use to test software and web sites. The service starts and stops just fine but when a custom made application actually is run within the service I get a .Net error in my event logs. Ive read up online and found that this is caused by an unhandled exception (As a result of this error in version 2.0 of the framework the application is killed.) so i added the correct handler and it didn't work. Then i found that another issue could be .net being corrupt so i uninstalled and reinstalled still no fix. I know theres an issue with one of my applications but i cant find were. I don't get any errors when i debug anyone know what i should do? I give my event logs for you to view if theres anything else you need let me know.

    HTML Code:
    ------------- Event Log Error -------------
    Event Type:	Error
    Event Source:	.NET Runtime 2.0 Error Reporting
    Event Category:	None
    Event ID:	5000
    Date:		11/1/2010
    Time:		8:54:34 AM
    User:		N/A
    Computer:	LIMPER-2355124B
    Description:
    EventType clr20r3, P1 system tray handler.exe, P2 1.0.0.0, P3 4cce8feb, P4 system.windows.forms, P5 2.0.0.0, P6 4333aefa, P7 47f1, P8 96, 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 73 00 79 00 73 00    .s.y.s.
    0018: 74 00 65 00 6d 00 20 00   t.e.m. .
    0020: 74 00 72 00 61 00 79 00   t.r.a.y.
    0028: 20 00 68 00 61 00 6e 00    .h.a.n.
    0030: 64 00 6c 00 65 00 72 00   d.l.e.r.
    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: 63 00 63 00 65 00 38 00   c.c.e.8.
    0060: 66 00 65 00 62 00 2c 00   f.e.b.,.
    0068: 20 00 73 00 79 00 73 00    .s.y.s.
    0070: 74 00 65 00 6d 00 2e 00   t.e.m...
    0078: 77 00 69 00 6e 00 64 00   w.i.n.d.
    0080: 6f 00 77 00 73 00 2e 00   o.w.s...
    0088: 66 00 6f 00 72 00 6d 00   f.o.r.m.
    0090: 73 00 2c 00 20 00 32 00   s.,. .2.
    0098: 2e 00 30 00 2e 00 30 00   ..0...0.
    00a0: 2e 00 30 00 2c 00 20 00   ..0.,. .
    00a8: 34 00 33 00 33 00 33 00   4.3.3.3.
    00b0: 61 00 65 00 66 00 61 00   a.e.f.a.
    00b8: 2c 00 20 00 34 00 37 00   ,. .4.7.
    00c0: 66 00 31 00 2c 00 20 00   f.1.,. .
    00c8: 39 00 36 00 2c 00 20 00   9.6.,. .
    00d0: 73 00 79 00 73 00 74 00   s.y.s.t.
    00d8: 65 00 6d 00 2e 00 69 00   e.m...i.
    00e0: 6e 00 76 00 61 00 6c 00   n.v.a.l.
    00e8: 69 00 64 00 6f 00 70 00   i.d.o.p.
    00f0: 65 00 72 00 61 00 74 00   e.r.a.t.
    00f8: 69 00 6f 00 6e 00 65 00   i.o.n.e.
    0100: 78 00 63 00 65 00 70 00   x.c.e.p.
    0108: 74 00 69 00 6f 00 6e 00   t.i.o.n.
    0110: 20 00 4e 00 49 00 4c 00    .N.I.L.
    0118: 0d 00 0a 00               ....
    Beginner: Java
    Intermediate: VB.Net, C#, Delphi, Perl
    Master: HTML, XHTML, PHP, JavaScript, Pascal, SCAR

  2. #2
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: .NET Runtime 2.0 Error

    I fought this the other day with one of my applications and there isn't much on the net about how to actually fix it.

    What worked for me though, is that I was using a custom-made ocx (ActiveX) control in the application and, for some reason, did not get properly registered on the system at install time.

    So.. check all your dependencies and .dll's that are getting used by your application and make sure they're all registered on the system.

    You can use: regsvr32 "full\path\to\dllfile.dll"

  3. #3

    Thread Starter
    Member MicLovin's Avatar
    Join Date
    Jul 2008
    Location
    Under a rock
    Posts
    62

    Re: .NET Runtime 2.0 Error

    Quote Originally Posted by stateofidleness View Post
    I fought this the other day with one of my applications and there isn't much on the net about how to actually fix it.

    What worked for me though, is that I was using a custom-made ocx (ActiveX) control in the application and, for some reason, did not get properly registered on the system at install time.

    So.. check all your dependencies and .dll's that are getting used by your application and make sure they're all registered on the system.

    You can use: regsvr32 "full\path\to\dllfile.dll"

    Wow thanks. dummy me forgot to removed an imported dll that wasn't needed anymore... Thats what happens when you code for over 24 hours XD
    Beginner: Java
    Intermediate: VB.Net, C#, Delphi, Perl
    Master: HTML, XHTML, PHP, JavaScript, Pascal, SCAR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width