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
5
votes
0 answers

App_Code.dll is already loaded in another appdomain

I am running an ASP.NET 3.5 web application in developments. Development means that I need to modify App_Code fairly often. When I upload updated .cs files into App_Code, on the next page load, I get this error: The assembly…
Tim Westover
  • 327
  • 1
  • 14
5
votes
2 answers

Recycle several application pools in bat file

I'm trying to recycle several of my application pool using commands in a bat file but it doesn't work. This is my file : %windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool1 %windir%\system32\inetsrv\appcmd recycle apppool…
5
votes
2 answers

When does IIS recycle the worker process?

When I setup an application pool for my web app in IIS 6 it defaults the worker process to recycle in 1740 minutes (29 hours). Does this recycle happen even if there is activity on the web site or only if there is inactivity for 29 hours?
Guy
  • 65,082
  • 97
  • 254
  • 325
5
votes
1 answer

Will resetting an application pool automatically close all database connections?

I am running IIS6.0. I have the DefaultAppPool running one website. If I reset this application pool would that automatically close all database connections that are being used by the website? hope that makes sense, any help is appreciated.
Tim Jarvis
  • 667
  • 4
  • 9
  • 17
5
votes
1 answer

Unity configuration missing after application pool restart

In my Application_Start I configure Unity using the Unity-AutoRegistration tool: UnityFactory.Configure(config => config .Include(If.ImplementsITypeName, Then.Register()) .ExcludeSystemAssemblies() ); My UnityFactory class is static.…
René Wolferink
  • 3,558
  • 2
  • 29
  • 43
5
votes
2 answers

IIS application pool and .NET garbage collection

Consider an ASP.NET application with has a connection pool memory leak problem (where connections are not being closed correctly for example). Does recycling the application pool clear the connection pool (thus allowing more connections to be…
davidsleeps
  • 9,393
  • 11
  • 59
  • 73
5
votes
3 answers

IIS 7.0 app pool recycling every minute

I've got an app pool that is recycling exactly every minute. The Private memory is set to 1433600KB Virtual memory is set to 2457600KB (yes its a lot). The recycling regular time interval is left at its default value of 1740. From what I can see the…
Rob Marsh
  • 549
  • 5
  • 22
4
votes
2 answers

Application pool recycle after "Fixed number of requests"

What are the effects of IIS's app pool setting for recycling to recycle after "Fixed number of requests"? Suppose this number is 100, and the 99th person connects to my web site, then the 100th person comes and will trigger an application pool…
George2
  • 44,761
  • 110
  • 317
  • 455
4
votes
1 answer

Application_End being called too early/frequently

I am using a temporary database in a project that is disposed on Application_End: protected void Application_End() { if (_db != null) _db.Dispose(); } The problem is that Application_End seems to be called frequently whilst I am browsing…
DevDave
  • 6,700
  • 12
  • 65
  • 99
4
votes
1 answer

IIS7 Application pool best practices configuration

Is there a guideline or site in where I can information about best practices for configuring IIS 7 Application Pools?
EduSo
  • 63
  • 1
  • 1
  • 6
4
votes
7 answers

VS2010 Error in Recycling IIS Application Pool: Not Found

I'm making a Sharepoint visual web part in Visual Studio 2010 and it seems like out of nowhere I started receiving the error: "Error occurred in deployment step 'Recycle IIS Application Pool': Not found" In the output for my program it says which…
Chris
  • 41
  • 1
  • 2
4
votes
1 answer

Does .NET 6 Allow Multiple Apps to run in a Single App Pool?

Does .NET 6 allow multiple apps to run in a single app pool? .NET Core did not, but I'm not finding anywhere that specifies if .NET 6 allows this?
4
votes
0 answers

IIS loghttp module spams EventLog with errors about a worker process which cannot obtain custom log data for N requests

we have setup our web application on a new Windows Server Datacenter 2019 edition. Previously it ran on a Windows 2008 server. The application runs smoothly, but the EventLog is being overflooded with these errors: The loghttp module in the worker…
hakio
  • 41
  • 3
4
votes
2 answers

Single sign-on not working correctly using different application pools?

I have found out by creating 2 new websites under IIS 7 that single sign-on authentication doesn't work when run in different application pools. When i move the applications into the same pool i can login on one of them and be logged in on the other…
Patrick
  • 5,442
  • 9
  • 53
  • 104
4
votes
1 answer

IIS6 App Pool state

I was wondering if there is a way to capture the state of an IIS6 App Pool using DirectoryEntry in C#? I have seen people use AppPoolState for IIS7 but is there an equivalent that will work for IIS6? Or do I need to use a different namespace? EDIT:…
Matt
  • 1,220
  • 3
  • 21
  • 36