I work with assembly.CreateInstance, and it returns null, while it was perfect, using it with another project with the same assembly file DLL. Can you suggest reasons when and why it returns null? this is urgent?
Edit
The type I'm looking for has a default constructor, but it implements a different interface, for example. Project1 has an interface A and makes a DLL that contains a new type, let it be typeB that implements A. Project2 has the same interface A and uses the "CreateInstance" method to search for typeB, but here does CreateInstance return null, any suggestions?
source
share