Could not load file or assembly or one of its dependencies

前端 未结 30 1304
生来不讨喜
生来不讨喜 2020-11-22 03:18

I\'m having another of these \"Could not load file or assembly or one of its dependencies\" problems.

Additional information: Could not load file or

30条回答
  •  有刺的猬
    2020-11-22 03:50

    At 99% the Could not load file or assembly or one of its dependencies problem is caused by dependencies! I suggest you follow this steps:

    1. Download Dependency Walker from http://www.dependencywalker.com/

    2. Launch Dependency Walker and open the dll (in my case NativeInterfaces.dll)

    3. You can see one or more dll with the error in red Error opening file...

    4. It means that this dll is missing in your system; in my case the dll name is MSVCR71.DLL

    5. You can download missings dll from google and copy in right path (in my case c:\windows\system32)

    6. At this point, you must register the new dll in the GAC (Global Assembly Cache): open a DOS terminal and write:

      cd \Windows\System32
      regsvr32 /i msvcr71.dll
      
    7. Restart your application!

提交回复
热议问题