An unhandled exception of type 'System.ExecutionEngineException' occurred in System.Data.dll

S

Stephen Flynn

If I run my program on another machine I get the following error

An unhandled exception of type 'System.ExecutionEngineException' occurred in
System.Data.dll

This happens with I try to open an OleDb.OleDbConnection

What is causing this?

Also the normal Try Catch block doesn't catch this error, I had to use the
CLR debugger to get the error.

Thanks.
 
P

Patrick Steele

If I run my program on another machine I get the following error

An unhandled exception of type 'System.ExecutionEngineException' occurred in
System.Data.dll

This happens with I try to open an OleDb.OleDbConnection

What is causing this?

Wow. That's a nasty one. I would re-install the .NET runtime and make
sure both machines are running the same version (including service
packs).
Also the normal Try Catch block doesn't catch this error, I had to use the
CLR debugger to get the error.

I think there are (at least in 1.x) four exceptions that are so "bad",
they can't be caught. The runtime is so corrupt, it can't do proper
stack unwinding to process the exception.
System.ExecutionEngineException is one of them.
 
S

Stephen Flynn

Figured it out thanks to Patrick's advice

From KB 908077, I did the following and it works now.

Repair the .NET Framework 2.0
The following are three ways to repair the .NET Framework.
Use the Repair command on the Windows Installer cache file
To repair the .NET Framework 2.0 by using the Windows Installer cache file,
follow these steps:1. Click Start, click Run, type installer in the Open
box, and then click OK.
2. On the View menu in Windows Installer, click Details, right-click
the Name column header, and then click Comment.
3. Right-click the cached Windows Installer file that has the
Microsoft .NET Framework 2.0 RTL x86 enu comment, and then click Repair.
4. After the repair process has completed, quit Windows Installer.
 

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