In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The main content of this article is to explain "what are the reasons for the restart of the ASP.NET site", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the reasons for the restart of the ASP.NET site.
1. Recycling the application pool causes the site to restart, recorded because:
HostingEnvironment initiated shutdown HostingEnvironment caused shutdown
two。 Modifying the application pool recycling rule will cause the restart. Record the reason for the restart:
HostingEnvironment initiated shutdown HostingEnvironment caused shutdown
3. Changing the name of the site in IIS will not cause a restart
4. Modifying the configuration file web.config of the site root directory and adding a few spaces in the configuration file comments will cause a restart. The reasons for the restart are as follows:
CONFIG change HostingEnvironment initiated shutdown
However, modifying the web.config file of the subdirectory does not necessarily lead to an immediate restart
5. Modifying the aspx,master file does not necessarily lead to a restart, but each modification will lead to a recompilation, and the site will restart after 15 recompilations. The reason for the restart is:
Recompilation limit of 15 reached HostingEnvironment initiated shutdown
Restarting this number after 15 times can be configured in web.config by changing the value of the numRecompilesBeforeAppRestart attribute of compilation.
6. Deleting the pdb file in the bin directory will cause a restart. The reasons for the restart are as follows:
Change Notification for critical directories.
Creating an empty folder under the bin directory will cause the site to restart because:
Directory rename change notification for 'D:projectsTestWebAppTestWeb'.T estWeb dir change or directory rename
Deleting an empty folder under the bin directory will cause the site to restart for the following reasons:
Directory rename change notification for 'D:projectsTestWebAppTestWeb'.T estWeb dir change or directory rename
7. Modifying the Global.asax file will cause the site to restart, even if you add a few spaces. The reasons for the restart are as follows:
Change in GLOBAL.ASAX HostingEnvironment initiated shutdown
8. Changes to the App_Code directory will cause the site to restart
Adding a folder named App_Code under the root directory of the site will cause a restart. The reason for the restart is:
Change Notification for critical directories. App_Code dir change or directory rename
Deleting the App_Code folder will cause the site to restart. The reasons for the restart are:
File Change Notification Error in D:projectsTestWebAppTestWebapp_code
Change Notification for critical directories.
App_Code dir change or directory rename
Creating or deleting a cs file under the App_Code folder will cause the site to restart. The reason for the record is:
Change Notification for critical directories. App_Code dir change or directory rename
9. Changes to the critical path will cause the site to restart, including:
Bin, App_Code, Web References,App_Browsers,App_GlobalResources,App_LocalResources
10. In addition, the scanning of files by antivirus software may cause the ASP.NET process to mistakenly think that the file or critical path has changed, and it will also lead to restart.
At this point, I believe that everyone has a deeper understanding of the "causes of ASP.NET site restart", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.