locating assembly

  • Thread starter Thread starter John L.
  • Start date Start date
J

John L.

Hi, suppose I have the following in my configuration,

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin"/>
</assemblyBinding>
</runtime>
</configuration>

Here the privatePath 'bin' should be a sub-folder of the application root
(the folder the EXE executes). Is there a way to reference a folder that is
not a sub-folder? say <probing privatePath="c:\myfolder\assemblyBin"/> ?

John
 
John said:
Hi, suppose I have the following in my configuration,

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin"/>
</assemblyBinding>
</runtime>
</configuration>

Here the privatePath 'bin' should be a sub-folder of the application
root (the folder the EXE executes). Is there a way to reference a
folder that is not a sub-folder? say <probing
privatePath="c:\myfolder\assemblyBin"/> ?

If you reference *any* assembly outside of the application folder (or
subfolders) it *must* have a strong name. Having said that, the only way
that you can do this with a config file is with a <codeBase> element,
and that element is used to give the location of a *specific* assembly.

Richard
 
Back
Top