Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2003

Tip: Looking for answers? Try searching our database.

strange error not cought by try...catch...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexey Kouzmitch - 30 Oct 2003 23:01 GMT
Hi,

I wrote a console application which is called from a SQL Server job. The
application utilizes a COM object, to pump data from a legacy (no very old
however) application to SQL server. The application works fine, but once in
a while it fails with the following message written to the event log:

-----------------------------------------------------------------------
The description for Event ID ( 0 ) in Source ( .NET
Runtime ) cannot be found. The local computer may not have
the necessary registry information or message DLL files to
display messages from a remote computer. The following
information is part of the event: .NET Runtime version
1.1.4322.0-
<application name>.exe -
Common Language Runtime Debugging Services: Application
has generated an exception that could not be handled.

Process id=0xce8 (3304), Thread id=0xdf4 (3572).
-----------------------------------------------------------------------

The application wraps ALL of its code in a try...catch... block and then
writes a log entry in the catch. That doesn't get called when this happens.
It seems as if the application is just stopped w/o it knowing it and an
error generated in the runtime.

The error doesn't seem to have a pattern, and a repeat run of the program
would work.

What could be causing this? How can I get more information on the error? Is
there a way to make the program generate a cordmp file to see what the
exception was and where exactly it had happened?

Thanks.

   -Alexey.
Peter Koen - 30 Oct 2003 23:12 GMT
> What could be causing this? How can I get more information on the
> error? Is there a way to make the program generate a cordmp file to
> see what the exception was and where exactly it had happened?

This exception is not generated directly by your application. It happens on
writing to the event log. It seems that you are trying to write a message
to the event log with a registered source and message id, but haven't
registered the dll containing the messages.

Signature

------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT

------ooo---OOO---ooo------

Alexey Kouzmitch - 30 Oct 2003 23:23 GMT
so how do i register the dll?
are you talking about puttin it into GAC?
But besides that, the application makes several entries in the event log
when it executes successfully, so why would one write fail versus the other?

> > What could be causing this? How can I get more information on the
> > error? Is there a way to make the program generate a cordmp file to
[quoted text clipped - 4 lines]
> to the event log with a registered source and message id, but haven't
> registered the dll containing the messages.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.