Steve Clements

.Net and then some....


News



MCP

Add to Google
Add to Technorati Favorites



Subscribe to this Blog by Email


this is Steve's profile
Locations of visitors to this page

My Stats

  • Posts - 119
  • Comments - 98
  • Trackbacks - 52

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Image Galleries


Fav Blogs


Fav Places


Services!


Top Kudos



As errors go I found this one is pretty horrific.

I got the error deploying a windows service written in .net 3.5 from my Vista x86 dev rig, to a 2003 x86 server.  Only having the .NET runtime installed on the server I wrapped the service up in a deployment project.  The service installed fine, however when trying to start the service I got a "The service did not respond in a timely manner" error.  Initially, like you would, I thought there was probably an error with my code in the OnStart method, but alas nothing in my beautifully crafted exception logging framework(!), over to the event viewer and this little beauty!

The complete error is...

EventType clr20r3, P1 <servicename.exe>, P2 1.0.0.0, P3 4816d837, P4 system, P5 2.0.0.0, P6 471ebf0d, P7 36d5, P8 7f, P9 system.argumentexception, P10 NIL.

The error is titled...

.NET 2.0 Runtime error. (Which through me a little, I'm on .net 3.5!!)

After some intense googling I have pretty much "Jack", no clear answer from the MS forums, despite input from MSFT staff.  Something that kept popping up was that I was referencing something in the framework that wasn't installed on the server.  So I checked every reference manually on the server, I even thought there might be a problem because some of the .NET dll's on my machine are in "/ProgramFiles (x86)/...." the server not being x64 didn't have this folder so, I created it! (Not convinced, but worth a shot!) Nope, same error.

Right, most who have seen this error report no problem on their dev machine with VS installed and get it on machines with just the runtime installed.  So, feck it, I installed VS 2008 on the server (clutching right!), I just though perhaps there was something VS installed that I was referencing somewhere...at the very least I would have debug tools installed, speed up the process and could rule it out.  Nope, same error.  Now I can't actually attach a debugger to the process can I, as the service hasn't won't start!

This is mental!  As far as I was concerned I had nowhere else to go.  By the way, somewhere in there I actually tried to run the service on a different x64 2003 server, but still the same error.  I got another service I have been working on, hacked it about so it would build and run (making sure I was referencing the same libraries as original project).  Same drill, wrapped it in an installer, spun it up on the server, started first time!!!  Right, nothing to do with the framework, clearly the issue is local to my project.

I created a new project and copied in any custom classes and basically replicated exactly what the problem service was doing, IT WORKED.  The only thing different, when I created the first project, I deleted the "Service1" that the project template creates.

If you have made it this far down the post in anticipation of the first cause and "concrete" solution for this error, I am sorry to disappoint, but all I have is it to create a new project and start again...VS must be doing/wanting something weird in the background.  After wasting a hours on this I don't have the inclination of patience to look further/deeper.

Perhaps someone has had similar experiences with the error and could enlighten the rest of us?


posted @ Wednesday, April 30, 2008 4:57 PM | Filed Under [ Vista .NET Visual Studio ]

Comments

Gravatar # re: Error | EventType clr20r3
Posted by Dave Gruska on 6/6/2008 6:36 PM
Sorry, I can't offer any enlightenment, but I did get a similar error with a Windows service that had been running without problems for over 7 months:

EventType clr20r3 ... P9 system.exception

I couldn't find any reason for the error, and when the service ran today, it worked fine, and when I manually ran the service, it worked fine again. I'm keeping an eye on it, and have some more logging set up now to try to catch it if it happens again.

BTW, you probably already know this (since you said it just threw you a little), but .NET 3.5 and 3.0 both use the 2.0 CLR with add-on classes, etc. So unfortunately everything seems to get reported as 2.0.
Gravatar # re: Error | EventType clr20r3
Posted by You're not alone on 6/30/2008 7:17 PM
Your not alone, we've recently encountered the same issue. I suspect it was a recent patch, but I'm still looking.

Further debug info for analysis: our error is thrown from pre-existing console apps (vb.net 2.0) that run every few hours on a schedule. The apps, of course, have not changed in quite some time which makes me think it was a patch (about the only thing that happens on this machine). The other quirk is that it is not every time -- maybe once a day or two. Most of the time, the apps run just fine.

If I find a solution, I'll try to remember to post it here for you.

Post a comment





 

Please add 6 and 3 and type the answer here: