bin 文件夹内任何文件的任何更改是否会导致 ASP.NET Web 应用程序中的应用程序回收? [英] Does any change in any file inside bin folder cause application recycle in ASP.NET web application?

查看:20
本文介绍了bin 文件夹内任何文件的任何更改是否会导致 ASP.NET Web 应用程序中的应用程序回收?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 ASP.NET Web 应用程序中,更改位于 bin 文件夹中的 DLL 文件会导致应用程序回收.

I know that in ASP.NET web application, changing a DLL file located in the bin folder causes an application recycle.

但我想知道,正如主题所暗示的那样,任何文件更改是否会导致这种行为?此方案中是否包含简单的文本文件?

But I wonder, as the subject implies, whether any file changes cause such behavior? Are simple text files included in this scenario?

bin 文件夹的子文件夹呢?以及它们的内容?

And what about sub folders to bin folder? And their contents?

我知道我可以自己尝试一下,但更重要的是,我正在为此寻找合适的文档.

I know I can try it out myself, but more importantly, I'm looking for proper documentation for this.

推荐答案

首先,我无法提供官方文档的链接.但是从我读到的每个 bin 文件夹(包括子文件夹)中的更改都将导致 IIS 回收应用程序域.

First, i can not provide a link to an official documentation. But from what i've read every change in the bin-folder(incl. subfolders) will cause the IIS to recycle the application domain.

突然的应用程序池回收

  1. 应用程序的 BIN 目录中的任何修改

  1. Any modifications in the Application’s BIN Directory

在任何配置文件中进行更改,例如 Web.config 或其他(如果您的应用程序中有任何特定的配置文件,请说在名为 App_Config 的目录中).

Making changes in any Configuration File/s, like Web.config or others ( if you have any specific config file in your application say in a directory called App_Config).

在 APP_CODE 目录中的源代码文件中进行修改.这可能会在任何源代码文件中更改,或者在此目录中添加或删除文件.

Making modifications in the Source code files in APP_CODE Directory. This maybe change in any Source code files, or adding or deleting files from this directory.

在 Global.asax 文件中进行更改

Making changes in the Global.asax file

在 Machine.config 文件中进行更改.

Making Changes in the Machine.config file.

在 Web 应用程序的根目录中进行任何修改.这意味着动态创建文件/子目录可能会导致应用程序池回收.

Making any modifications in the Web Application’s Root Directory. This means creating files/subdirectories on the fly can lead to application pool recycling.

对 App_WebReferences 目录的 Web Services 引用的修改.

Modifications for references of Web Services of App_WebReferences directory.

修改根目录中任意目录的安全设置.(例如为每个人或任何其他特定用户或用户组指定读取安全权限.)

Modifying the Security Settings of any directory in the Root directory. (Like specifying read security rights for everyone or any other specific user or user group.)

这里有一些阅读:

  1. 是什么导致 IIS 中的应用程序池回收?
  2. http://christopherdeweese.com/blog2/post/beware-writing-to-the-bin-folder-in-iis-hosted-services
  3. IISReset 有什么作用?
  4. http://www.iis.net/ConfigReference/system.applicationHost/applicationPools/add/recycling
  5. 在 IIS 7.0 中管理、调整和配置应用程序池
  6. http://varunvns.wordpress.com/2011/07/04/application-pool-restarts/

这篇关于bin 文件夹内任何文件的任何更改是否会导致 ASP.NET Web 应用程序中的应用程序回收?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆