System.EnterpriseServices.Wrapper - System.IO.FileNotFoundExceptio

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

According to some Google searches System.EnterpriseServices.Wrapper.DLL is a
C++ DLL used to get COM+ services into the .NET Framework.

According to other Google searches the System.EnterpriseServices.Wrapper.DLL
is a gateway into OLEDB based database drivers.

Either way, on some client workstations for my application in the field the
System.EnterpriseServices.Wrapper.DLL isn't properly installed and a .NET
Framework 2.0 repair or re-install is required.

Is there any additional information that Microsoft can provide so I can add
install logic to properly install the DLL or code workarounds to avoid using
System.EnterpriseServices.Wrapper.DLL so my customers won't have to run
through the .NET Framework 2.0 reinstall / repair?

Here is the call stack from the failures that my clients are seeing:

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or
one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException -- System.EnterpriseServices

at System.EnterpriseServices.ContextUtil.get_IsInTransaction()
at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
at System.Data.Common.ADP.NeedManualEnlistment()
at System.Data.OleDb.OleDbConnection.Open()
at Starkey.Framework.Data.ConnectionPool.GetConnection()
at Starkey.Framework.Data.ConnectionPoolManager.GetConnection(String
connectionString, Type connectionType)
at Starkey.Framework.Data.OleDb.OleDbGenericData.EstablishConnection()

Thank you.
--Dan Edgar
 
A corrupted install of .NET 2.0 could be the culprit. Please try the following:

1. Uninstall .NET Framework 2.0 Service Pack 1.
2. Uninstall .NET Framework 2.0.
3. Re-install .NET Framework 2.0.
4. Re-install .NET Framework 2.0 Service Pack 1.
5. Reboot your system.

This worked for me after encountering the error "Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies" when attempting to use System.Data.OleDb with a MS Access database.

I believe the problem is caused after install of additional Microsoft patches and updates but cannot confirm which ones corrupt the .NET Framework install.

Good luck!
 
I had the same problem and fixed it with reinstalling the .NET Framework 2.0

But...

A full bunch with .NET versions, inclusive development environments ( VS2005 and VS2008 ).
Simply i can't uninstall the .NET Framework 2.0 easily.

....and cos i am a lazy girl i did following:
Swing the hammer with the Windows Install Clean Up utility

( http://support.microsoft.com/kb/290301/de from there
http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe )

- Remove the "Microsoft .NET Framework 2.0 Service Pack 2" or your version with the clean up utility.

- Use regedit to remove the following two keys:
* HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
* HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0

- start NetFx20SP2_x86.exe (from http://www.microsoft.com/downloads/...58-915B-4EB5-9B1D-10E506DA9D0F&displaylang=en ) to do a fresh .NET Framework 2.0 SP2 setup
- don't reboot, be happy:)

Hope this helps.
Yours Jed





Matthew Esterak wrote:

System.EnterpriseServices.Wrapper error solution
10-Jul-08

A corrupted install of .NET 2.0 could be the culprit. Please try the following:

1. Uninstall .NET Framework 2.0 Service Pack 1.
2. Uninstall .NET Framework 2.0.
3. Re-install .NET Framework 2.0.
4. Re-install .NET Framework 2.0 Service Pack 1.
5. Reboot your system.

This worked for me after encountering the error "Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies" when attempting to use System.Data.OleDb with a MS Access database.

I believe the problem is caused after install of additional Microsoft patches and updates but cannot confirm which ones corrupt the .NET Framework install.

Good luck!

Previous Posts In This Thread:

System.EnterpriseServices.Wrapper - System.IO.FileNotFoundExceptio
According to some Google searches System.EnterpriseServices.Wrapper.DLL is a
C++ DLL used to get COM+ services into the .NET Framework

According to other Google searches the System.EnterpriseServices.Wrapper.DLL
is a gateway into OLEDB based database drivers

Either way, on some client workstations for my application in the field the
System.EnterpriseServices.Wrapper.DLL isn't properly installed and a .NET
Framework 2.0 repair or re-install is required

Is there any additional information that Microsoft can provide so I can add
install logic to properly install the DLL or code workarounds to avoid using
System.EnterpriseServices.Wrapper.DLL so my customers won't have to run
through the .NET Framework 2.0 reinstall / repair

Here is the call stack from the failures that my clients are seeing

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or
one of its dependencies. The system cannot find the file specified
System.IO.FileNotFoundException -- System.EnterpriseService

at System.EnterpriseServices.ContextUtil.get_IsInTransaction(
at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction(
at System.Data.Common.ADP.NeedManualEnlistment(
at System.Data.OleDb.OleDbConnection.Open(
at Starkey.Framework.Data.ConnectionPool.GetConnection(
at Starkey.Framework.Data.ConnectionPoolManager.GetConnection(String
connectionString, Type connectionType
at Starkey.Framework.Data.OleDb.OleDbGenericData.EstablishConnection(

Thank you
--Dan Edgar

System.EnterpriseServices.Wrapper error solution
A corrupted install of .NET 2.0 could be the culprit. Please try the following:

1. Uninstall .NET Framework 2.0 Service Pack 1.
2. Uninstall .NET Framework 2.0.
3. Re-install .NET Framework 2.0.
4. Re-install .NET Framework 2.0 Service Pack 1.
5. Reboot your system.

This worked for me after encountering the error "Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies" when attempting to use System.Data.OleDb with a MS Access database.

I believe the problem is caused after install of additional Microsoft patches and updates but cannot confirm which ones corrupt the .NET Framework install.

Good luck!


Submitted via EggHeadCafe - Software Developer Portal of Choice
Get Started with SQLite and Visual Studio
http://www.eggheadcafe.com/tutorial...b-b6f46d4f2c6a/get-started-with-sqlite-a.aspx
 
Back
Top