why this does not work??

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
T

Tamir Khason

Why this does not work?
/*first option*/

String path = @"C:\TestMethod.dll"; //There is file named TestMethod.dll at
C:\

/*second option*/

String path = "TestMethod.dll"; //There is file named TestMethod.dll at
Current directory

Assembly a = Assembly.Load(path);//File Not Found exception....!!!
 
Hi Tamir,

You are using the wrong Load method, try Assembly.LoadFile( path ) or
Assembly.LoadFrom

For the different between them, take a look at MSDN, I think that you will
do with LoadFile


Hope this help,
 
It's OK now.
Thanks,
MS change it from .NET 1.0 to .NET 1.1 and NOTHING in documentation....

Thank you anyway...
 
Back
Top