System.IO.FileLoadException: Could not load file or assembly 'OleDb (0x800736B1)

Hello,

i work on a VS 2005 Solutions with 10 projects. One of this profects is a C++ project (OleDb.dll). This C++ project use many external .dll. On my PC a can start the \bin\Debug\project.exe without any problem. But when a copied the \bin\Debug directory in to another PC without VS 2005 it can't start all .dll. I become the following exception (traduction from german):

System.IO.FileLoadException: Could not load file or assembly 'OleDb, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application can not started because the applicatiion configuration ist not correct. To solve the problem you have to re-installed the application again. (Exception from HRESULT: 0x800736B1)
File name: 'OleDb, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null' > System.Runtime.InteropServices.COMException (0x800736B1) ..... (Exception from HRESULT: 0x800736B1)
at DeltaMiner.Client.MainForm.SetView()
at DeltaMiner.Client.MainForm.GetResources()
at DeltaMiner.Client.MainForm.OnLoad(EventArgs e)

Please how can i solve this problem?

I have allready installed the .Net Framework and i have copied the rest of .dll in the new directory but it's not help. I have also try to find dependency with depends.exe but i don't see anything!!

Thanks,

Abongs

[1363 byte] By [Abongs] at [2007-12-24]
# 1
Use the Profile option in DependencyWalker to find out what DLL it can't find...

nobugz at 2007-8-31 > top of Msdn Tech,.NET Development,Common Language Runtime...
# 2

Thanks for your answer. But there is no dependency in the project. I can't see any dependency with depends.exe.

Is there any other help?

Thanks,

abongs

Abongs at 2007-8-31 > top of Msdn Tech,.NET Development,Common Language Runtime...
# 3
You

can only see dependencies on dynamically loaded DLLs with the profile

output. There's a lot so you'll have to do some digging to find

out which one is missing.
Since this is a C++ DLL, did you install the CRT DLLs on the target machine?

nobugz at 2007-8-31 > top of Msdn Tech,.NET Development,Common Language Runtime...

.NET Development

Site Classified