Application has generated an exception that could not be handled

S

Sparky

Hi

A user is running our software which generates the following message:

<exe name> - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.

It then displays a process and thread id -378193 & -291045.

This happens as soon as the user tries to run the program. It looks like all
the appropriate files were copied across with the setup program. Also, the
..Net Framework looks to have installed correctly according to dotNetFX.log

Has anyone had a similar problem? Is there any way I can get more
information regarding the error? (NOTE - the PC is Win98SE. The application
has been installed on many SE machines before without issues).

Many thanks!

Sparky
 
T

Tian Min Huang

Hello Sparky,

Thanks for your post. As I understand, the problem you are facing is that
you applicaiton fails to execute with the exception "Common Language
Runtime Debugging Services Application has generated an exception that
could not be handled". Now I'd like to share the following information with
you:

1. Where does the executable file of your application locates, on local
harddrive or on remote network share? I used to have seen this error when
starting a program via a Network Share without FullTrust permission.

2. To narrow down the problem, I suggest that you can make use
AppDomain.UnhandledException to handle the exception and print out the call
stack when the problem occurs.

AppDomain.UnhandledException Event
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemAppDomainClassUnhandledExceptionTopic.asp

3. In addition, you can also set the following registry key:
HKLM\Software\Microsoft\.NETFramework\DbgJITDebugLaunchSetting

to a DWORD of 0xFF00 or 0xFF02, which should force a JIT-attach dialog to
come up and give you the opportunity to at least figure out what kind of
exception this is. That would give you a starting point to figure out why
your catch block isn't getting it.

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
S

Sparky

Hi Tian

Thanks for the reply.

We tried using RegEdit which didn't work properly, the regedit screen went
blank after a couple of seconds, and also they got an error when closing
down.

I did a search on the web for the error text they got when shutting down,
and it turns out it was a display driver issue which is now fixed!

Regards

Sparky
 

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