EventType clr20r3 exception in EventLog when installing a windows serv(hockblogs.net)

submitted by hockmanhockman(505) 3 years, 2 months ago

Hi there, Recently I got the following error when starting a windows service that was calling a cross domain webservice: EventType clr20r3, P1 kidyevwoifqwsnnsswwfxf5wpma0nhqc, P2 1.0.0.0, P3 492a76d8, P4 system.configuration, P5 2.0.0.0, P6 471ebf00, P7 1a6, P8 136, P9 ioibmurhynrxkw0zxkyrvfn0boyyufow, P10 NIL. After doing some gooooooogling I got to the following website: http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/9ec62bfb-af83-4cbe-afae-129bda463506/ which let me to http://devproj20.blogspot.com/2007/03/eventtype-clr20r3-from-windows-service.html. There was stated that 'The error is an example of an unhandled exception being thrown out of the application. You can make some sense of the error by implementing a handler for the UnhandledException event on the current AppDomain that your application is running in. This event will pass in the exception object that has been thrown, so you can log it to the Event Viewer in a more meaningful fashion.' So I handled the UnhandledException in my code by writing the following code: AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; /// <summary> /// Handles the UnhandledException event of the CurrentDomain control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.UnhandledExceptionEventArgs"/> instance containing the event data.</param> private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { Exception exception = e.ExceptionObject as Exception; if (exception != null) { System.Diagnostics.EventLog.WriteEntry("service", exception.InnerException.Message, EventLogEntryType.Error); } }

add a comment |category: |Views: 25

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story