I am loading an assembly at runtime on my code and all the references to that assembly are broken at the run time as I have mentioned on this thread:
How to keep dynamically loaded assemblies form breaking code at compile time?
BUT now I tried to solve this issue using the technique that the gentleman here in this thread suggested:
http://www.codeproject.com/Articles/187788/Dynamically-Loading-NET-Assemblies-using-Interface
the only problem here that the the class that I am activating from the dynamic assembly uses the native types to that assembly which I can not define in my Interface. and that's where I am stuck.
I also tried replacing those foreign assembly's native type with object/dynamic but my casting is failing at that point.
Any suggestion on how to solve this issue?