Re: [Python.NET] Error when trying to import a C# DLL
Darryl, Does the issue only occur when you load the assembly from the CAG? I've typically used Assembly.LoadWithPartialName( 'NameOfMyAssembleyWithoutDotDLL' ) from CLR import MyClass with the DLL located in the PYTHONPATH. Maksim ________________________________ From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Darryl Pogue Sent: Saturday, September 23, 2006 9:51 PM To: pythondotnet@python.org Subject: [Python.NET] Error when trying to import a C# DLL I'm getting this error when ever I try to use Assembly.Load("Huru.Plasma.dll") I need to be able to access the dll's classes in order to translate data from one format to another. I get this output on the console: CLR.System.BadImageFormatException: Exception from HRESULT: 0x8013141D. at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(Byte[] rawAssembly) ------------------------- I have tried using import CLR.Huru.Plasma but it tells me that there is no module named Huru. The dll is in the GAC. I am able to access all System dlls and DirectX dlls, but not my own C# dll. http://www.urulive.com/blog/
participants (1)
-
Maksim Kozyarchuk