Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error: "Application has generated an exception that could not be handled"

16 views
Skip to first unread message

Mark Gabarra [MSFT]

unread,
Jun 18, 2003, 6:43:22 PM6/18/03
to
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

This posting is provided "AS IS" with no warranties, and confers no rights.

Frank Racis

unread,
Jul 4, 2003, 6:16:30 AM7/4/03
to
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

"Mark Gabarra [MSFT]" <ma...@online.microsoft.com> wrote in message
news:BNLVJseN...@cpmsftngxa06.phx.gbl...

mo...@tek.com

unread,
Jan 20, 2005, 11:47:50 PM1/20/05
to
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
mo...@tek.com

Patrick Steele [MVP]

unread,
Jan 23, 2005, 11:56:10 AM1/23/05
to
In article <1106282870.6...@z14g2000cwz.googlegroups.com>,
mo...@tek.com says...

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

I would re-install the framework on the machine exhibiting the error.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele

0 new messages