J
Julie
I have an app that was working as expected under VS2005/2.0. We just
switched to VS2008, and are now experiencing some assembly loading problems.
Here is the scenario:
c:\folder\app.exe
c:\folder\shared.dll
c:\another\myderivedclass.dll
c:\another\shared.dll
shared.dll is the same assembly is referenced by both app.exe and
myderivedclass.dll.
app.exe dynamically loads myderivedclass.dll using
Assembly.LoadFrom(assemblyName) and attempts to create an instance of a
class in myderivedclass.dll. That class derives from a class defined in
shared.dll.
Under VS05, the fusion log shows that shared.dll is bound from c:\folder
when app.exe starts AND when dynamically loading myderivedclass.dll.
HOWEVER, under VS08, the fusion log shows that shared.dll is bound from
c:\folder when app.exe starts BUT from c:\another when dynamically
loading myderivedclass.dll. Everything dies when attempting to cast to
the base class in app.exe for obvious reasons.
So, WHY the change between VS05 and 08?
Are there any app.config changes I can make to force the loading of
shared.dll from c:\folder?
I have the source to app.exe, but at the moment, I'm not able to modify
the code -- hoping for a solution through configuration or changing
myderivedclass.dll
Thanks for any info.
-j
switched to VS2008, and are now experiencing some assembly loading problems.
Here is the scenario:
c:\folder\app.exe
c:\folder\shared.dll
c:\another\myderivedclass.dll
c:\another\shared.dll
shared.dll is the same assembly is referenced by both app.exe and
myderivedclass.dll.
app.exe dynamically loads myderivedclass.dll using
Assembly.LoadFrom(assemblyName) and attempts to create an instance of a
class in myderivedclass.dll. That class derives from a class defined in
shared.dll.
Under VS05, the fusion log shows that shared.dll is bound from c:\folder
when app.exe starts AND when dynamically loading myderivedclass.dll.
HOWEVER, under VS08, the fusion log shows that shared.dll is bound from
c:\folder when app.exe starts BUT from c:\another when dynamically
loading myderivedclass.dll. Everything dies when attempting to cast to
the base class in app.exe for obvious reasons.
So, WHY the change between VS05 and 08?
Are there any app.config changes I can make to force the loading of
shared.dll from c:\folder?
I have the source to app.exe, but at the moment, I'm not able to modify
the code -- hoping for a solution through configuration or changing
myderivedclass.dll
Thanks for any info.
-j