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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top