How to have multiple bin folders in an asp.net application?

江枫思渺然 提交于 2019-12-04 16:55:21

You can add an assemblyBinding element to your web.config to set multiple 'bin' paths:

<configuration>
   <runtime>   
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin;SubApp1\bin;SubApp2\bin"/>
      </assemblyBinding>
   </runtime>   
</configuration>

This will cause your main web application to use DLLs from all of the bin paths in the probing element.

1- Create a Bin folder yourself in the root folder of the website in IIS
2- Search for *.dll in your project and paste the DLLs in the Bin folder created in step 1 (it will find all the dlls inside inner bin folders)

i have fixed my missed assemblies in asp.net ckfinder + ckeditor apps hosted in IIS for testing

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