asp.net website external bin folder [duplicate]

痞子三分冷 提交于 2019-12-11 09:57:39

问题


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>


来源:https://stackoverflow.com/questions/376006/asp-net-website-external-bin-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!