I have written a pretty simple C# Windows Forms application, and a colleague wants to test it out on Windows 7 using Parallels 8 , because he only has a Mac.
The problem is, when he starts it up using the EXE file in the debug folder, he gets this error:
Error starting OMAPI (Unable to load DLL 'libomapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)) Check the required .dll files are present the correct versions: OmApiNet.dll libomapi.dll
As you can see from the image below, the required DLL files are right there in the same folder, and if he takes this debug folder to a Windows PC it works fine, so it's definitely some sort of virtual machine or Parallels-specific problem.
How can I fix this problem?
I haven't really used virtual machines enough to know what the problem could be...
在它上面运行ProcMon并查看尝试查找文件的确切做法会很有趣。
This is possibly more of a network drive issue. Have him copy that folder from the Y: drive (shared from his Mac) to the C: drive and run it again from there.
It looks like your trying to run the application from a network share, in which the .NET platform forbids as its a security risk. Try copying the files to someplace else on the virtual machine such as C:\\Temp.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.