Discussion:
Error: "Application has generated an exception that could not be handled"
(too old to reply)
Frank Racis
2003-07-04 10:16:30 UTC
Permalink
The unhandled exception dialog is horrible. At an absolute minimum, it
needs to display the name of the exception. The message would be nice, as
would a "more info" button to show the stack trace and the rest of the gory
details. In its current state, it gives absolutely no useful information.

I just wasted half a day trying to troubleshoot a missing DLL. The
Framework SDK's steadfast refusal to install on XP Tablet didn't help the
situation.

Outputting to stderr doesn't do much for WinForms apps - you normally never
see it, even if you launch from a command line. Here's a hint for the next
person to run into this error. Run your application from the command line,
redirecting stderr to a file:
myapp.exe 2> error.log
When the application dies, the exception information and stack dump will be
written to the file. (I wish I had figured this out 4 hours ago).

-Frank
Mike is correct. The message you are getting simply means that there is
an
unhandled exception in your code somewhere. Attaching a debugger to the
binary is an easy way to investigate this issue. Also, when you click Ok
the exception information and guilty stack trace should be output to
stdout
and stderr for your process.
Mark Gabarra
MS CLR team
m***@tek.com
2005-01-21 04:47:50 UTC
Permalink
Hi Mark,
I am having a problem with my VB .Net application. It runs fine on
machine which .Net is installed . When I run it on another person's
machine which does not have .Net (but frame work 1.1 is installed), I
get the following error:


Application popup: apllication.exe - Common Language Runtime Debugging
Services : Application has generated an exception that could not be
handled.


Process id=0x41c (1052), Thread id=0x770 (1904).


Click OK to terminate the application.
Click CANCEL to debug the application.


Also i have tried the followin command from command line.

Application.exe > Error.log

After run the exe , Error.log has created with 0 bytes.
Can you please help me to solve this issue?
Thanks,


Mohan
***@tek.com
Patrick Steele [MVP]
2005-01-23 16:56:10 UTC
Permalink
Post by m***@tek.com
I am having a problem with my VB .Net application. It runs fine on
machine which .Net is installed . When I run it on another person's
machine which does not have .Net (but frame work 1.1 is installed), I
Application popup: apllication.exe - Common Language Runtime Debugging
Services : Application has generated an exception that could not be
handled.
Process id=0x41c (1052), Thread id=0x770 (1904).
I would re-install the framework on the machine exhibiting the error.
--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Continue reading on narkive:
Loading...