Application has generated an exception that could not be handled.

G

Guest

Hi All,

I have an exe, developed in vb.net (on XP Professional). I have copied the
exe to another system, which is also an XP Professional system. I have
installed MDAC 2.8. the .NET framework 1.1 and .NET framework 1.1 SP1.

I am getting the following error reported by Common language runtime
debugging services:
Application has generated an exception that could not be handled. Process
id=0x234(584) Thread id=0x404(1028). Click OK to terminate the application.
Click CANCEL to debug the application.

Does anybody know how to fix this error?

Thanks.
kd
 
M

m.posseth

my first recomendation would be ,,, compile the program in debug mode and
copy this one to the computer that raises the error ,, you might receive a
less generic error thus receiving an error with a notification what is
exactly going wrong ...

if this not solves you problem i would start writing ,,, flags in my code
that outputs to msgboxes , or a trace file ,, so you can see where the error
occurs in your code

hope this helps

Michel Posseth [MCP]
 
C

Cathal Connolly [C# MVP]

Make sure you've taken its *exe.config file with it, as if it's missing a
similar error is generated.
 
J

Joseph Bittman MCAD

July 24, 2005

If it is because of a missing app config file, then you could just copy the
..exe to another place on the dev's local hard drive and see if you get the
same error. You should get the same error because the app.config file is
missing in both places. Otherwise, I don't believe that is the problem. Hope
this helps! :)

--
Joseph Bittman
Microsoft Certified Application Developer

Web Site: http://71.39.42.23
Static IP
 
G

Guest

Hi,

Thanks to you both for your trying to help me out.

I checked the .NET documentation on MSDN in this regard. The help says that
the framework version on the deploying machine needs to be the same as the
one that was used for development. On the deployment machine, I had
downloaded the framework and on the development machine, I had installed the
framework from the CD. Though both mention that the framework version is 1.1,
there must've some change...I don't know about this. However, I uninstalled
the framework on the deployment machine and installed a copy from the CD.
This fixed the error.

Thanks once again.
Regards,
kd
 

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