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

A

Alexey Kouzmitch

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.
 
P

Peter Koen

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.

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

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

------ooo---OOO---ooo------
 
A

Alexey Kouzmitch

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top