G
Guest
Short Description:
When I change the reference to an external library to copylocal=false, The
application does not seem to even hit the first line of code before throwing
a Assembly not found exception. Making it such that I can't employ the
AssemblyResolve event to go find the library at runtime.
Long Description:
I have a WinForm application in a Project, lets call it ProjectA.
I then have a Class Library Project lets call it LibraryB.
If I reference LibraryB from ProjectA and set the copylocal attribute to
false, then in my ProjectA the AssemblyResolve event should fire and allow me
to go find the location of LibraryB and use the Assembly.LoadFrom() method to
load LibraryB at runtime.
This works for one application I have created as expected, my problem is I
have another application with the exact same setup (as far as I can tell),
and when the application starts it IMMEDIATELY throws the exception:
________________________________________________________
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll
Additional information: Could not load file or assembly 'LibraryB,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified.
_________________________________________________________
The keyword here is IMMEDIATELY, as in, it never hits a breakpoint, I have
even tried to debug it using the "Step Into" function from the beginning and
it appears to not hit a single line of code before throwing the exception.
Any ideas on where to look to solve this problem?
Thank You
Joel
When I change the reference to an external library to copylocal=false, The
application does not seem to even hit the first line of code before throwing
a Assembly not found exception. Making it such that I can't employ the
AssemblyResolve event to go find the library at runtime.
Long Description:
I have a WinForm application in a Project, lets call it ProjectA.
I then have a Class Library Project lets call it LibraryB.
If I reference LibraryB from ProjectA and set the copylocal attribute to
false, then in my ProjectA the AssemblyResolve event should fire and allow me
to go find the location of LibraryB and use the Assembly.LoadFrom() method to
load LibraryB at runtime.
This works for one application I have created as expected, my problem is I
have another application with the exact same setup (as far as I can tell),
and when the application starts it IMMEDIATELY throws the exception:
________________________________________________________
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll
Additional information: Could not load file or assembly 'LibraryB,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified.
_________________________________________________________
The keyword here is IMMEDIATELY, as in, it never hits a breakpoint, I have
even tried to debug it using the "Step Into" function from the beginning and
it appears to not hit a single line of code before throwing the exception.
Any ideas on where to look to solve this problem?
Thank You
Joel