MPR.DLL

G

Guest

When trying to deploy my C#/C++/CLI application on a Win XP Pro SP2 with .NET
FW 1.1 and 2.0 I get the following error when opening my C++/CLI application
with dependency walker:

Besides the MPR.DLL module in dependency walker there is a Delay-load module
warning. And when I run the application I get the following error:

Failed to load module from assembly C:\Documents and
Settings\Desktop\070327\MyCPPCLIWrapper.dll. Error was:
Could not load file or assembly 'MyCPPCLIWrapper, Version=1.0.2629.32412,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem. (Exception from
HRESULT: 0x800736B1)

The MPR.DLL exists in the C:\WINDOWS\system32 folder. What could be the
problem?
 
B

Ben Voigt

Joachim said:
When trying to deploy my C#/C++/CLI application on a Win XP Pro SP2 with
.NET
FW 1.1 and 2.0 I get the following error when opening my C++/CLI
application
with dependency walker:

Besides the MPR.DLL module in dependency walker there is a Delay-load
module
warning. And when I run the application I get the following error:

That's normal with MPR.DLL, and not an error.
Failed to load module from assembly C:\Documents and
Settings\Desktop\070327\MyCPPCLIWrapper.dll. Error was:
Could not load file or assembly 'MyCPPCLIWrapper, Version=1.0.2629.32412,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem. (Exception
from
HRESULT: 0x800736B1)

The MPR.DLL exists in the C:\WINDOWS\system32 folder. What could be the
problem?

MPR.DLL is not the problem. Probably you are compiling with VC++ 2005 SP1,
but the DLLs on the computer are from VC++ 2005 Gold (because the .NET 2.0
framework includes the Gold DLLs). Run the version of vc_redist that was
provided with SP1, your problems will go away.
 

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