Assembly.LoadFrom Method
This method dynamically loads dll file. If the assemblyFile parameter passed to the method didn't explicitly specify the directory and the FileNotFoundException occured, try check the Environment.CurrentDirectory to see if it is what supposed to be. One thing that could change the working directory when running the application is the OpenFileDialog. To prevent this to happen, set RestoreDirectory in OpenFileDialog to true.
Tags: .NET
This method dynamically loads dll file. If the assemblyFile parameter passed to the method didn't explicitly specify the directory and the FileNotFoundException occured, try check the Environment.CurrentDirectory to see if it is what supposed to be. One thing that could change the working directory when running the application is the OpenFileDialog. To prevent this to happen, set RestoreDirectory in OpenFileDialog to true.
Tags: .NET

0 Comments:
Post a Comment
<< Home