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
17
votes
3 answers

What is best practice in IIS? One application pool for each application, or a shared application pool?

In IIS 7, what is best practice? Should I create an application pool for each application, or should I share an application pool with as much application as possible? Are there any performance drawbacks or security issues related to one of the…
jao
  • 18,273
  • 15
  • 63
  • 96
17
votes
5 answers

ASP.NET restarts when a folder is created, renamed or deleted

UPDATE -- process to replicate issue: 1) Create a website project at c:\projects\restart-demo 2) Add default web.config and a dummy aspx page test.aspx 3) Map IIS to point to the root folder c:\projects\restart-demo 4) Monitor application restarts…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
17
votes
2 answers

Create SQL Server Login for IIS APPPOOL - IIS and SQL Server on different machines

I've searched thoroughly- apologies in advance if I am missing an obvious answer. Followed the recommendations at link below and the solution did not work. The solution also does not indicate whether it applies to a production webserver running IIS…
Joe Colorado
  • 173
  • 1
  • 1
  • 7
17
votes
3 answers

How to remotely check the status of a web application pool with PowerShell?

I see a lot of scripts for recycling application pools on a web server running IIS7 but is there a way to check, with PowerShell, that the web application pool is running or stopped? I can't seem to figure out a way to remotely have…
MichaelF
  • 487
  • 2
  • 12
  • 31
17
votes
5 answers

RSACryptoServiceProvider CryptographicException System Cannot Find the File Specified under ASP.NET

I have an application which is making use of the RSACryptoServiceProvider to decrypt some data using a known private key (stored in a variable). When the IIS Application Pool is configured to use Network Service, everything runs fine. However,…
user111013
16
votes
4 answers

How do I crash the App Pool?

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…
willem
  • 25,977
  • 22
  • 75
  • 115
16
votes
5 answers

How to rename application pool that already has application assigned to it?

I have an Application pool that has a lot of applications been assigned to it, it won't let me rename. Beside delete and creating a new application pool, is there anyway to get a new name for my application pool? I don't want to go and reassign…
J - C Sharper
  • 1,567
  • 7
  • 23
  • 36
16
votes
3 answers

Why does the application pool automatically stop?

I'm doing performance testing for my MVC internet application using IIS 7.0 Sometimes the application pool stops and I get an error saying "service unavailable" in my browser. I then have to restart the pool. Why is the pool automatically stopped,…
backtrack
  • 7,996
  • 5
  • 52
  • 99
16
votes
5 answers

IIS 7.0 gives 503 error and stops the application pool

When I start the application pool, and request a page in an application in that pool, I get a "HTTP Error 503. The service is unavailable." If I look at the application pools in IIS, I can see that it has now stopped. Going to the event viewer I…
Ram
  • 661
  • 2
  • 12
  • 37
16
votes
4 answers

AutoStart/Pre-warm features not working in IIS 7.5 / WCF service

For testing the many headaches of IIS/WCF implementation from scratch, I built the HelloWorld service and client walked through (very nicely) here. I added endpoints for net.tcp, and the service is working properly end-to-end for both bindings under…
downwitch
  • 1,362
  • 3
  • 19
  • 40
15
votes
3 answers

Is there a way to configure the Application Pool's "Idle timeout" in web.config?

I know one can set the session timeout. But, if the application itself has received no requests for a given period of time, IIS shuts down the application. This behavior is configurable in the IIS management console, and I know how to do this.…
Martin Kool
  • 4,188
  • 4
  • 25
  • 36
15
votes
1 answer

Should I set ASP.NET application pool to auto-recycle?

I have a number of ASP.NET (4.0) web applications that appear to leak (a small amount) of memory during each request. It is such a small amount, that for most use-cases, it will not grow to become a problem for weeks or even months at a time. I…
Assaf
  • 1,336
  • 1
  • 10
  • 17
14
votes
1 answer

What is the different between Session Timeout and Idle Timeout in IIS?

In IIS, Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options, the default Session timeout is 20 minutes. Also, Select Application Pools > DefaultAppPool > Properties, in the Performance tab, there is…
GLP
  • 3,441
  • 20
  • 59
  • 91
14
votes
5 answers

IIS 7.5 application pool uses wrong %APPDATA% for custom user as identity

I want my MVC3 web application to access %APPDATA% (e.g. C:\Users\MyUsername\AppData\Roaming on Windows 7) because I store configuration files there. Therefore I created an application pool in IIS with the identity of the user "MyUsername", created…
AndiDog
  • 68,631
  • 21
  • 159
  • 205
14
votes
1 answer

IIS 6.0 Application Pool crash

Have a lot of troubles on production server. Some routing cause crashing of Application Pool with event id 1011: Event Type: Warning Event Source: W3SVC Event Category: None Event ID: 1011 Date: 1/21/2009 Time: 9:08:17 AM User: N/A …
AlfeG
  • 1,475
  • 4
  • 18
  • 33
1 2
3
58 59