473,769 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.
Jul 21 '05 #1
2 1490
"Alexey Kouzmitch" <ak********@res olvetech.com> wrote in
news:ua******** ******@tk2msftn gp13.phx.gbl:
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------
Jul 21 '05 #2
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?
"Peter Koen" <koen-newsreply&snusn u.at> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
"Alexey Kouzmitch" <ak********@res olvetech.com> wrote in
news:ua******** ******@tk2msftn gp13.phx.gbl:
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------

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1100
by: Jeff | last post by:
This is one that has been stumping me for a few days now. I have an xml document that is based on a schema, and that schema is based on another schema. When using XMLSpy 2004 Enterprise Edition, everything is valid and well-formed. When I run it through my .NET in C# validator it always throws this error --> It is an error if maxExclusive is among the members of {facets} of {base type definition} and {value} is greater than or equal...
8
3474
by: shin | last post by:
hi i have an asp.net page and i am trying to transfer control to another asp.net page response.redirect works fine but server.transfer gives me the foll error why is that System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)...
5
1221
by: Ori :) | last post by:
Hi guys, I have a windows service which runs few timers to perform a certain task, my code is well wrapped with "Try...Catch"s, but still whenever an error occurs and an exception is being thrown, it executes the code in the "Catch" section and instead of continue, the service stops. What gives? I want it to continue running even if an exception was cought.
2
239
by: Alexey Kouzmitch | last post by:
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...
0
9586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.