Hi Kresimir,
I experienced a similar issue with pythonnet on the CPython side (import clr), but these could be unrelated. https://github.com/pythonnet/pythonnet/issues/242 How are you loading the third-party DLL? Did you check assembly binding log viewer for any errors? We can't help much, if you cannot provide a reproducible code with all dependencies. Thanks, Denis On Thu, Dec 8, 2016, 6:21 AM Simunic,Kresimir <kresimir.simu...@reicofil.com> wrote: > Hi all, > > > > I use one third-party DLL (.NET) and after loading this DLL and then > calling PythonEngine.Initialize() following exception will be thrown: > > > > 12/8/2016 1:05:34 PM: System.Reflection.ReflectionTypeLoadException *Unable > to load one or more of the requested types. Retrieve the LoaderExceptions > property for more information* > > bei System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) > > bei System.Reflection.Assembly.GetTypes() > > bei Python.Runtime.AssemblyManager.ScanAssembly(Assembly assembly) > > bei Python.Runtime.AssemblyManager.Initialize() > > bei Python.Runtime.Runtime.Initialize() > > bei Python.Runtime.PythonEngine.Initialize() > > > > If I first call PythonEngine.Initialize() and then call this third-party > DLL, everything is fine. > > > > The producer of this third-party DLL tells me the problem is not with them > but with Python DLL. > > > > Can somebody help me ? > > > > Thanks. > > > > Regards, > > > > Kresimir. > > > > *Reifenhäuser Reicofil GmbH & Co. KG* > Spicher Straße 46, 53844 Troisdorf, Germany > Registergericht Siegburg, Reg.Nr. HR A 4534 > USt-IdNr. DE 814359351, Steuer-Nr. 5220/5760/0426 > Reifenhäuser Reicofil Verwaltungs-GmbH > Registergericht Siegburg, Reg.Nr. HR B 788 > Geschäftsführer: Dr.-Ing. Bernd Kunze > > Please note: This message may contain information which is privileged, > confidential and proprietary. > > > _________________________________________________ > Python.NET mailing list - PythonDotNet@python.org > https://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet