Home All Groups Group Topic Archive Search About

privatePath not working

Author
20 Mar 2007 9:25 AM
lpshen
Hi,

I use the configureation file to redirect the referenced assembly file
location to the 'bin' subdirectory as following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.vl">
   <probing privatePath="bin"/>
  </assemblyBinding>
</runtime>
</configuration>

But it failed, the CLR didn't go to the "bin" directory to search the
referenced assembly, Why? I got the following information:
Unhandled exception: FileNotFoundException
LOG:Found Application Configuration file (...)
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Multimodule, Version=2.0.1955.22628,
Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL
....
....

Many thanks,
Liping

AddThis Social Bookmark Button