Questions tagged [application-pool]

Application pools allow you to isolate your applications from one another, even if they are running on the same server.

An Application Pool can contain one or more applications and allows us to configure a level of isolation between different Web applications. For example, if you want to isolate all the Web applications running in the same computer, you can do this by creating a separate application pool for every Web application and placing them in their corresponding application pool. Because each application pool runs in its own worker process, errors in one application pool will not affect the applications running in other application pools.

882 questions
6
votes
3 answers

Changing IIS 6/7 Application Pool settings programmatically

How can I programmatically change IIS application pools' settings and properties (for example: the Enable 32-Bit Applications setting)? Are there reference guides on properties for IIS 6 or 7 on MSDN or Technet?
Kottan
  • 4,944
  • 9
  • 41
  • 67
6
votes
2 answers

Does recycling the ASP.NET application kick users out?

We have a problem where the solution seems to be to recycle the app pool for a particular site (a CMS issue we have little control of, I won't go into it here). My question is that while this seems to work, if there are users on the site making…
Duncan
  • 10,218
  • 14
  • 64
  • 96
6
votes
1 answer

What's the relation between classic asp and a IIS application pool?

Does asp run in the IIS application pool for which the website is configured? Or is the application pool only for asp.NET applications. How do those two relate to each other, what do i need to know to understand who's doing what and where are they…
Sander Versluys
  • 72,737
  • 23
  • 84
  • 91
6
votes
2 answers

Programmatically assigning IIS Application Pool Identity "users" to Groups

The Problem: When new IIS Application Pools are created and set to use the Application Pool Identity for permissions, I am unsure how to add those identities to User Groups such as Administrator or Performance Counter Users. The Background: I'm…
jmsb
  • 4,846
  • 5
  • 29
  • 38
6
votes
2 answers

Enumerating Application Pools in IIS

I am wondering if there is a way to enumerate the collection of applications pools (not the applications in a given pool - but the pools themselves) on the local IIS server using ASP.net 3.5 without the use of WMI, and if so can someone provide a…
Streklin
  • 849
  • 1
  • 10
  • 19
6
votes
1 answer

IIS 7 Rewrite to different Application Pool

There are a lot of topics on the subject saying that you cannot rewrite an incoming request to a different Application Pool in IIS 7 (one such post is…
5
votes
3 answers

How to trace the connection pool in a Java Web application - DBMS_APPLICATION_INFO

I need improve the traceability in a Web Application that usually run on fixed db user. The DBA should have a fast access for the information about the heavy users that are degrading the database. 5 years ago, I implemented a .NET ORM engine which…
user102193
5
votes
1 answer

Can a script update the Identity tab fields of Application Pool properties in IIS 6.0+

I am a developer and I have arrived at a solution to a webservice authentication problem that involved ensuring Kerberos was maintained because of multiple network hops. In short: A separate application pool for the virtual directory hosting the…
John Adams
  • 4,773
  • 25
  • 91
  • 131
5
votes
0 answers

Failed to gracefully shutdown application (IIS Hang)

on application pool my .net core(3.1) application suddenly shutdown(in production server), I often get the following entry in event log Failed to gracefully shutdown application 'MACHINE/WEBROOT/APPHOST/SITEName'.
5
votes
2 answers

Replacing a DLL while AppDomain is already loaded in ASP.NET

What happens if a dll is already loaded by w3wp.exe and we replace it? Of course we can replace a dll since asp.net uses a cached version of Bin folder DLLs, but I want to know if upon replacing a dll it will load the new one or it wait until next…
Xaqron
  • 29,931
  • 42
  • 140
  • 205
5
votes
2 answers

Does recycling the IIS7 application pool kill any currently executing requests?

Does recycling the IIS7 application pool kill any currently executing requests? Or does it wait for all requests to complete (like a drain-stop)? I don't want the recycling rules to cause intermittent errors from my WCF sites. Thanks
sheikhjabootie
  • 7,308
  • 2
  • 35
  • 41
5
votes
8 answers

How to recycle an app pool on a remote machine using the command line

I have the following in a vbs file that i am trying to run from the command line: strServerName = "ServerName" strAppPoolName = "DefaultAppPool" set objAppPools = GetObject("IIS://" & strServerName &…
Will I Am
  • 83
  • 1
  • 1
  • 6
5
votes
0 answers

Running ASP.Net Core Background Tasks after AppPool Recycling

I have an asp.net core application running on windows server. This is using some background tasks for using external service to get the data. We are facing an issue that after our app pool recycled/restarted, the background task is not running. This…
Shibu S R
  • 153
  • 1
  • 8
5
votes
1 answer

Asp.Net App Pool Overlapped Recycling Timing?

As best I can tell when a worker process recycles: a) a new one spins up before the old one shuts down b) the old one shuts down once all the active requests its servicing completes Is the above accurate? If so, I have data that I store in SQL once…
downatone
  • 1,936
  • 2
  • 23
  • 30
5
votes
1 answer

ServerManager, Creating application pool, identity not set

I'm trying to create application pool using the ServerManager class. This is my code: using (ServerManager serverManager = new ServerManager()) { if (!serverManager.ApplicationPools.Any(p => p.Name == poolName)) { ApplicationPool newPool =…
user2073333
  • 152
  • 1
  • 9