C dll not loading in c #

I have a simple C DLL (not COM). I also have a C # 2.0 application that runs it (dllimport). Dll is placed in exe application. I know that the dll is fine, and also that the application that calls it success reads it, but when I move them to another computer, it says that it can load the DLL.

Error: "Failed to load dll name.dll. This application failed to start because the application configuration is incorrect."

I used visual studio 2005 to create the dll. A pointer computer is side by side. When I took the folder next to each other, CRT did not start. Thanks

+4
source share
3 answers

I used a lot from the comments people write, and they are right. I used the Dependency Walker tool and the process monitor and process. I had a problem with my application not finding the correct msvr80 at runtime. I installed the destructible package af VC ++ amd did not help. The answer was in another discussion here, and it side-by-side configuration error (Microsoft.VC80.CRT v8.0.50608.0) This was a security update issue: Microsoft.VC80.CRT v8.0.50727.4053 (installed with a security update )

0
source

C Dll may have various dependencies. Try using the Dependency Walker tool to determine if they have one.

+4
source

On Windows, a configuration issue may be detected for side-by-side with your application.

For example, C dll is usually compiled against a specific version of the Microsoft C runtime library that cannot be installed on your second computer. It also should not be a C runtime library, it could be some other library.

How to diagnose it?

Check out this article, http://blogs.msdn.com/junfeng/archive/2006/04/14/576314.aspx for a starting point, although no guarantees.

+2
source

All Articles