C# Tip: Unable to load DLL 'XXX.dll': The specified module could not be found. (Exception from HRESULT:0x8007007E).

When I debugged the program today, I found that the program ran normally on the laptop, but after copying it to the client host, an error occurred (System.DllNotFoundException: Unable to load DLL "msc.dll": The specified module cannot be found. (Exception comes from HRESULT:0x8007007E) .) problem, after repeated debugging,

1. Confirm that the CPU platform is x86, which is normal.

 

2. The path of dll, normal

After repeated troubleshooting, it was found that a dependent library of msc.dll was missing.

Use the following method to view C++ dependent libraries:

1. Open the console command line in the vs directory

2. Enter the command in the command line: dumpbin /dependents msc.dll in the corresponding directory. It is found that this program has a total of 5 dependent libraries. The final investigation found that MSVCR100.dll does not exist. Download a corresponding dll and put it in the local path. , the program runs normally.

 

おすすめ

転載: blog.csdn.net/XYH_78/article/details/131802822