473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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.
Mar 5 '07 #1
3 11546
In article <O$**************@TK2MSFTNGP03.phx.gbl>,
ss*****@nospam.nospam says...
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.

--
Patrick Steele
http://weblogs.asp.net/psteele
Mar 6 '07 #2
Thanks for the reply. How do I go about reinstalling the .Net runtime?
"Patrick Steele" <pa*****@mvps.orgwrote in message
news:MP************************@msnews.microsoft.c om...
In article <O$**************@TK2MSFTNGP03.phx.gbl>,
ss*****@nospam.nospam says...
>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.

--
Patrick Steele
http://weblogs.asp.net/psteele

Mar 6 '07 #3
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.

"Patrick Steele" <pa*****@mvps.orgwrote in message
news:MP************************@msnews.microsoft.c om...
In article <O$**************@TK2MSFTNGP03.phx.gbl>,
ss*****@nospam.nospam says...
>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.

--
Patrick Steele
http://weblogs.asp.net/psteele

Mar 6 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rafael | last post by:
Hi, I hope I can find some help for this problem IDE: Visual Studio.NET 2003 Developer Editio Language: C# Problem: "An unhandled exception of type 'System.NullReferenceException' occurred in...
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
2
by: Einar Værnes | last post by:
Hi I'm new to C#, and have just started to make a aspx-program. The program runs fine until i try to include a two-dimensional array: int myArray = new int {{1,2}, {3,4}, {5,6}, {7,8}}; The...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
4
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
3
by: NormD | last post by:
An exception 'System.ExecutionEngineException' has occurred in servername I have deployed a windows application on a server; I'm running the same on my pc using...
1
by: Pedro Dinis | last post by:
i have this class library that connects to the database(see appconfig below) compiling 0 errors but when its running i amhaving this error An unhandled exception of type...
2
by: lily86 | last post by:
i'm very new so i hope all of u can help me. when i debug my webforms this error occur "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.