I created an activeX exe (registered with regasm.exe) that loads a DLL with
Dim a As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile(FullPath)
This DLL works with an Interface "PSInterface". As normal exe it works, but when i call that activex object i am getting a ReflectionTypeLoadException
in a.GetTypes
. When i look into that error i get the following:
Could not load file or assembly 'PSInterface, Version=1.0.0.0, Culture = neutral, PublicKeyToken=null' or one of its dependencies. The System cannot find the file specified.
The PSInterface.dll is in the same folder as the exe and dll.
What can i do?