locating assembly

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
 
R

Richard Grimes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top