-->

asp.net website external bin folder [duplicate]

2019-08-15 00:02发布

问题:

Can I put my "bin" folder with all of its .dll files at a higher level then the IIS Local Path/web root for the site? I need to keep my dll files in a directory outside of my project is this possible, I tried to use a virtual directory but .net seems to ignore it.

Can I use a virtual directory for my bin folder?

DUPLICATE: More info provided here: adding .net code to a classic asp website, can't reference namespaces in .dll file

回答1:

No, you cannot. Maybe the GAC will work.



回答2:

This CH article outlines how to go about setting up the web.config to probe for multiple bins, maybe this could help:

http://www.codinghorror.com/blog/archives/000131.html



回答3:

You can. You will need to modify the config file for your application to probe the location:

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


标签: asp.net iis-5