简体   繁体   English

ASP.NET IIS更改APP_DATA和Bin文件夹

[英]ASP.NET IIS change APP_DATA and Bin folders

Is there a way to tell ASP not to look for dlls in BIN folder? 有没有办法告诉ASP不要在BIN文件夹中寻找dll?

ASP.NET automatically replace |DataDirectory| ASP.NET自动替换| DataDirectory | with a path ending with \\App_Data is there a way to change that? 以\\ App_Data结尾的路径是否可以更改它?

I never searched so much with so meager results. 我从来没有搜索过这么少的结果。

No, for both questions. 不,这两个问题。

Both bin and |DataDirectory| bin| DataDirectory | are hard-wired in the ASP.NET runtime, there is no way to change it. 在ASP.NET运行时中是硬连接的,无法更改它。

If you don't want to use \\App_Data , just don't use it and don't use DataDirectory either. 如果您不想使用\\App_Data ,那就不要使用它,也不要使用DataDirectory Use your own data location and implement your own code to get to it. 使用您自己的数据位置并实现自己的代码即可。

There is simply no way around the bin directory. bin目录中根本没有办法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM