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
14
votes
1 answer

How to check whether an application pool exists or not in IIS using powershell and web administration module?

I am using powershell to automate configuring websites in my IIS. I have the following code that creates a web application pool for me #Creating a new Application Pool New-WebAppPool "NewAppPool" But before creating the pool, I want to check…
Shruti Agarwal
  • 887
  • 2
  • 14
  • 29
13
votes
3 answers

Why Even Recycle an Application Pool?

Maybe someone can shed some light on this simple question: I have a .NET web application that has been thoroughly vetted. It loads a cache per appdomain (process) whenever one starts and can not fully reply to requests until it completes this cache…
Omer van Kloeten
  • 11,800
  • 9
  • 42
  • 53
13
votes
2 answers

Set Application Pool for package using MSDeploy

I am deploying a website using MSDeploy so using something like the below code. "%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:package=WebAppServer.zip -dest:Auto -setParamFile="was_params.xml" …
bearrito
  • 2,217
  • 1
  • 25
  • 36
13
votes
3 answers

How to get Application Pool name through code (C#, ASP.net)

I want to recycle the application pool through my application. Previously I was storing the application pool name in my database and using that to recycle. But It happened in the past that we moved apps from one app pool to another and sometimes we…
dIvYaNsH sInGh
  • 1,943
  • 3
  • 21
  • 40
12
votes
3 answers

When programmatically creating a new IIS web site, how can I add it to an existing application pool?

I have successfully automated the process of creating a new IIS website, however the code I've written doesn't care about application pools, it just gets added to DefaultAppPool. However I'd like to add this newly created site to an existing…
Ian Robinson
  • 16,892
  • 8
  • 47
  • 61
12
votes
0 answers

Does HttpRuntime.UnloadAppDomain abruptly terminate current requests?

In ASP.NET, when you modify web.config file, IIS will recycle the app pool. Now, I am storing my configs in the DB instead of web.config and would like to simulate a similar behavior. My current solution is to call HttpRuntime.UnloadAppDomain(). The…
Tu Hoang
  • 4,622
  • 13
  • 35
  • 48
12
votes
5 answers

Config Error Failed to decrypt attribute 'password'

Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x8007000d Config Error Failed to decrypt attribute 'password' Config File Unavailable (Config Isolation) When i run my app im getting this error and i couldn't…
WeyCell
  • 273
  • 1
  • 2
  • 12
11
votes
3 answers

Detecting when an ASP.NET application recycles

I'm trying to detect when an ASP.NET application is recycling due to either the web.config file being modified or the IIS application pool being manually recycled. Initially I thought ASP.NET's Application_End method would work, and tried the…
Martin
  • 295
  • 1
  • 3
  • 12
11
votes
5 answers

Worker process recycles because it reached its virtual memory limit

We host a rather large (self written) ASP.NET website for our customers. It consists of a web service, a web site and a image serving web site, all three in their own virtual directory. The three virtual directories are together in one application…
Michiel Overeem
  • 3,894
  • 2
  • 27
  • 39
11
votes
3 answers

IIS 8.5: Virtual Account for App Pool (IIS AppPool\{Application Pool Name} is not available

I am running IIS 8.5 on a Windows 2012 R2 Core box. I created a new application pool called "MyNewAppPool". I have a website instance, called "MyNewWebsite.com" running in the "MyNewAppPool" application pool. The Identity used for "MyNewAppPool"…
11
votes
1 answer

Do websites in the same application pool share loaded libraries?

I have a Windows Server 2012 with IIS 8.0. It is hosting many small websites with a low user base which are not mission critical in any way. With small website I mean that the application code and memory footprint is quite low, but due to the loaded…
marce
  • 781
  • 1
  • 10
  • 20
11
votes
2 answers

Drawback to creating a separate IIS application pool for each website / application

Currently, on our production IIS web farm, we host about 15 applications in a single App Pool (Default App Pool). There are two websites and about 13 virtual directories. A colleague has recommended that we change our IIS configuration so each…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
11
votes
5 answers

Change .NET Framework version of application pool to 3.5?

I've installed .NET Framework 3.5 SP1 on web server (Server 2008 Enterprise), so running IIS 7.0. I want to change the version of .NET Framework used by an existing site. So I right-click on appropriate Application Pool and selected Edit…
Sean Sexton
  • 1,069
  • 2
  • 11
  • 19
11
votes
1 answer

Can I get the Process ID of a worker process in a web application?

I have an application that runs in an application pool that has muliple worker processes. I need to access the process id in the controller to check some issues I have since I changed the application pool to use multiple worker processes.
Mathias F
  • 15,906
  • 22
  • 89
  • 159
10
votes
3 answers

Worker process reached its allowed processing time

We are experiencing this issue approximately once a month. It is very hard to pinpoint the cause so any help would be appreciated. This causes the App pool to stop and brings the site down. We have gone through all log files and have concluded…
Confused