G
Guest
I have a component that needs to access files which exist in the same
directory as the DLL containing the component itself. To determine the
component's installation directory, I'm using
System.Reflection.Assembly.GetExecutingAssembly().Location. This worked fine
on my computer, but for another user, it failed because the assembly was
being loaded using a shadow copy of the DLL located in a different directory.
Is there a way, programmatically, to determine the location of the original
DLL, or is there a way to turn off shadow copying?
Thanks,
Bill
directory as the DLL containing the component itself. To determine the
component's installation directory, I'm using
System.Reflection.Assembly.GetExecutingAssembly().Location. This worked fine
on my computer, but for another user, it failed because the assembly was
being loaded using a shadow copy of the DLL located in a different directory.
Is there a way, programmatically, to determine the location of the original
DLL, or is there a way to turn off shadow copying?
Thanks,
Bill