I got a C++.NET library from a colleague with a name like "my-name.dll". Importing in IronPython is not possible since "from my-name import *" is not valid.
If I rename the library to "myname.dll" I get an error that the assembly manifest is missing (HRESULT: 0x80131018). Now I'm not sure wether it is a problem of the wrong name of the accompanying "my-name.lib" file (renaming didn't help) or if there is something different wrong.
I'm not an expert in .NET but as I testet with a VB.NET dll which I built myself (with a proper name) alle worked well.
Any ideas?
It's probably an issue with the assembly; calling clr.AddReference('my-name.dll')
should work just fine. One possibility is that your machine is missing the proper VC++ runtime files. Try creating a small VB/C# application and loading the DLL from there.
Also, make sure the assembly is not blocked.
User contributions licensed under CC BY-SA 3.0