Assembly Binding Path Broken?

L

localhost

..NET Framework 1.1-SP1.

I created an ASP.NET project with Visual Studio, it automatically
created a bin directory. Then I modified web.config to add a new
binary assembly direcoty, moved the web application DLL to that
directory, and now ASP.NET cannot run the app. My web config looks
like this:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<publisherPolicy apply="yes" />
<probing privatePath="bin;bin2" />
</assemblyBinding>

Why is this broken?

Thanks.
 
S

Steven Cheng[MSFT]

Hi Localhost,

Thanks for your posting. As for the privatePath problem you mentioned, it
is a normal behavior because the asp.net web application is abit different
from the normal desktop or console application which will ignore the other
private bin path we set in the <probing privatePath="..." /> element. So
generally in asp.net application, as for nonstrong-named assembly, we
should put them in the private "bin" folder.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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