G
George
Hi, I am trying to develop plug-in for my application.
So i am using following code to dynamically load DLL and create instance of the class
Assembly asem = AppDomain.CurrentDomain.Load(@"C:\folder\Template.dll");
clsTemplate tm = (clsTemplate)asem.CreateInstance("clsTemplate");
The first line gives me an error:
"An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: File or assembly name C:\folder\Template.dll, or one of its dependencies, was not found."
I double checked the path the file is there, also there is no dependencies (except standard references).
What do i do wrong?
Thanks
George
So i am using following code to dynamically load DLL and create instance of the class
Assembly asem = AppDomain.CurrentDomain.Load(@"C:\folder\Template.dll");
clsTemplate tm = (clsTemplate)asem.CreateInstance("clsTemplate");
The first line gives me an error:
"An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: File or assembly name C:\folder\Template.dll, or one of its dependencies, was not found."
I double checked the path the file is there, also there is no dependencies (except standard references).
What do i do wrong?
Thanks
George