无法加载文件或程序集"DriveInfoEx.dll"

问题描述:

我正在使用DriveinfoEx.dll(链接 [

I am Using DriveinfoEx.dll(link[^]). I am using win7 with VS2010 installed for development. I used this DriveInfoEx dll on my project to retrieve HDD serial and its working good on my development machine. I have to run myProject on other machine, which has winXp-32bit with .NET2.0 and vcredist_2010.

Then I ran dependency walker on target machine and load the DirectInfoEx dll and MsJava.dll were missing I copied MSjava.dll on System32 and missing msjava error were resolved. Now I am getting these lines on target machine:

Error: The Side-by-Side configuration information for "C:\UIHost\DRIVEINFOEX.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

what does that mean?

将其复制到system32文件夹中存在一定风险,因为这可能会覆盖其他应用程序的文件版本.尝试将其添加到应用程序本身的文件夹中,以使其与程序集位于同一文件夹中.

在这里,您可以获得一些一般信息:
http://msdn.microsoft.com/en-us/library/ms682586% 28VS.85%29.aspx [ ^ ]

祝你好运!
Copying it to the system32 folder is somewhat risky because that could override the file version for other applications as well. Try to add it to the folder of the application itself so it is in the same folder as the assembly depending on that.

Here you got some general info on this:
http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx[^]

Good luck!