application-pool

Stop IIS 7.5 Application Pool Recycling

痞子三分冷 提交于 2019-11-26 16:55:40
问题 How do stop application pools from recycling in IIS 7.5? I have configured the following settings: ProcessModel -> Idle Time-out (minutes) = 0 Recycling -> Regular Time Intervals (minutes) = 0 Are these settings enought to stop an application pool from recycling? 回答1: Yes, that should be ok assuming you also use Private Memory Limit = 0. There are still reasons an AppPool could recycle, such as when adding a new Global Module, it will require to be recycled so configuration changes take

How do I crash the App Pool?

爱⌒轻易说出口 提交于 2019-11-26 13:51:45
Our ASP.NET 2 web application handles exceptions very elegantly. We catch exceptions in Global ASAX in Application_Error. From there we log the exception and we show a friendly message to the user. However, this morning we deployed the latest version of our site. It ran ok for half an hour, but then the App Pool crashed. The site did not come back up until we restored the previous release. How can I make the app pool crash and skip the normal exception handler? I'm trying to replicate this problem, but with no luck so far. Update : we found the solution. One of our pages was screenscraping

How to disable the application pool idle time-out in IIS7?

北战南征 提交于 2019-11-26 12:02:14
问题 Will it be disabled if I set the idle time-out to 0? 回答1: Yes, setting the idle timeout value to zero will disable idle timeouts. Oddly this isn't documented in the MS docs but my evidence for this arises from: IIS Settings Schema If you have a look at the IIS settings schema in: C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml The schema definition for idleTimeout under <sectionSchema name="system.applicationHost/applicationPools"> it looks like: <attribute name="idleTimeout" type=

Get the Application Pool Identity programmatically

百般思念 提交于 2019-11-26 09:41:13
问题 How do I get the identity of an appPool programmatically in C#? I want the application pool user and NOT the user who is currently logged in. 回答1: You could use System.Security.Principal.WindowsIdentity.GetCurrent().Name to identify the Identity in which the current application is running. This link provides a nice utility which displays the identity under which the aspx is run. 回答2: You need to make a reference to Microsoft.Web.Administration (in Microsoft.Web.Administration.dll). Microsoft

How to keep ASP.NET assemblies in AppDomain alive?

霸气de小男生 提交于 2019-11-26 08:58:37
问题 Scenario: I\'ve an n-Tier enterprise ASP.NET application deployed using Web Deployment Projects. All tiers produce independent assemblies that is consumed by the ASP.NET application. Problem: When I run the app. for the first time after deployment it takes lot of time to load dependent assemblies in memory. But once loaded its lighting fast app. In case if there are no users accessing the app, IIS unloads the assemblies from the memory and when a user tried to access the app on a later

What exactly happens when I set LoadUserProfile of IIS pool?

你说的曾经没有我的故事 提交于 2019-11-26 08:07:03
问题 I faced the following issue. I run the following code var binaryData = File.ReadAllBytes(pathToPfxFile); var cert = new X509Certificate2(binaryData, password); in two processes. One of the processes runs under LOCAL_SYSTEM and there this code succeeds. Another one runs inside IIS under a local user account belonging to \"Users\" local group and there I get the following exception: System.Security.Cryptography.CryptographicException Object was not found. at System.Security.Cryptography

How do I crash the App Pool?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 03:45:40
问题 Our ASP.NET 2 web application handles exceptions very elegantly. We catch exceptions in Global ASAX in Application_Error. From there we log the exception and we show a friendly message to the user. However, this morning we deployed the latest version of our site. It ran ok for half an hour, but then the App Pool crashed. The site did not come back up until we restored the previous release. How can I make the app pool crash and skip the normal exception handler? I\'m trying to replicate this

What causes an application pool in IIS to recycle?

雨燕双飞 提交于 2019-11-26 01:44:56
问题 I have been searching for info on this to no avail. The context of why i need this is another question I asked here. More specifically, does creating/updating/deleting files in App_Data cause a pool recycle? If someone could provide a detailed list of what causes a recycle, that would be great. UPDATE : As two users already noticed I would also be happy to an answer specifying reasons for recycling the AppDomain only and not the whole pool. 回答1: Two different effects: The AppPool process is

Restarting (Recycling) an Application Pool

五迷三道 提交于 2019-11-25 20:46:42
How can I restart(recycle) IIS Application Pool from C# (.net 2)? Appreciate if you post sample code? John, If you're on IIS7 then this will do it if it is stopped. I assume you can adjust for restarting without having to be shown. // Gets the application pool collection from the server. [ModuleServiceMethod(PassThrough = true)] public ArrayList GetApplicationPoolCollection() { // Use an ArrayList to transfer objects to the client. ArrayList arrayOfApplicationBags = new ArrayList(); ServerManager serverManager = new ServerManager(); ApplicationPoolCollection applicationPoolCollection =

What causes an application pool in IIS to recycle?

拈花ヽ惹草 提交于 2019-11-25 19:02:39
I have been searching for info on this to no avail. The context of why i need this is another question I asked here . More specifically, does creating/updating/deleting files in App_Data cause a pool recycle? If someone could provide a detailed list of what causes a recycle, that would be great. UPDATE : As two users already noticed I would also be happy to an answer specifying reasons for recycling the AppDomain only and not the whole pool. Two different effects - the AppPool process is the host for potentially multiple appdomains. Typically this can be recycled by a number of effects e.g.