application-pool

How to config application pool in IIS 7.5 automatically re-start when it was stopped?

房东的猫 提交于 2019-11-28 06:17:44
My website was down several times per day and when I check the application pool (IIS 7.5), I saw it was stopped and I must restart it manually. How can I setup application pool so that it automatically restarts after an error? You will need to change the startMode for the application pool your website is running on from onDemand to AlwaysRunning. By default IIS sets all application pools to onDemand. In IIS Manager, click computer name in the Connection pane. Switch to Features View if the view is not active. Double-click Configuration Editor in the Management section of the Features View.

Set Application Pool for package using MSDeploy

微笑、不失礼 提交于 2019-11-28 05:32:16
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" -verbose > webappserversync.log Is there anyway to set the application pool ? I want to do this from the command line and not set it in a manifest or anything like that. Shouldn't matter but this is in IIS7. askheaves When you generate your package, you need to have an entry in the parameters.xml file for setting the Application Pool. When deploying, you either include a value

Version Information on ASP.NET Server Error Page

倖福魔咒の 提交于 2019-11-28 02:07:23
I have a ASP.NET MVC5 Web Application configured to run on .NET Framework version 4.5.1. However, I notice that when I get an application runtime exception of some sort, the version information displayed at the bottom of the yellow server error page says the following: Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009 Why is this not 4.5.x? That is not the actual .NET framework version. It is the version of the CLR. From .NET 4 up to 4.5.2 it is version 4. Between 2.0 and 3.5 it was version 2.0. That is also the reason that in your application

Enable application pool 32-bit mode on 64-bit server

北战南征 提交于 2019-11-28 01:34:47
We have 64-bit Windows server and we need to explicitly enable the 32-bit mode in the Application Pool used by our web site, because the MS Jet Engine Data Provider used to import data from Excel does not run. I am not sure, if we enable the 32-bit mode will we still get the advantage of 64-bit Server? In IIS 7.x, there is a Advanced Settings property of the application pool called "Enable 32-bit Applications". If you run the application as a 32-bit applications it should be able to use 4 GB but obviously no more. So, in that respect, it can take advantage of running on a 64-bit server. On a

Can you modify the web.config and NOT restart the ASP.NET application? [duplicate]

主宰稳场 提交于 2019-11-28 01:07:20
问题 Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified? Was just thinking about uptime. Thanks. 回答1: Yes, you can; see this answer. However, it is not a good idea. Until ASP.Net restarts the AppDomain, it will not look at web.config . If you change web.config , your changes will have no effect until the AppDomain is restarted. 回答2: You can create an external settings file and then reference it in your web.config. You will need to change the

Pros and cons of having dedicated application pools over keeping web applications in one default app pool

一笑奈何 提交于 2019-11-27 21:50:46
What are pros and cons of having dedicated application pools over keeping web applications in one default app pool? Pros: Applications are isolated from each other, unless IIS goes with it, an app pool locking will only take out applications in that pool Ability to run applications under different ASP.NET runtimes, one pool for 1.1 another for 2.0 if needed Ability to have different app pool settings for more or less critical applications. For example a corporate website in ASP.NET might want to have the shut down after __ minutes of inactivity bumped up, to prevent unloading because response

App pool timeout for azure web sites

隐身守侯 提交于 2019-11-27 20:07:47
is there a way to set the timeout of an app pool of a web-site running under azure sites. I have a site running there and it seems like it needs to spin up again when it has been idle for a while. Windows Azure Web Sites supports two modes, shared and Reserved. In Shared mode, your web site process (w3wp) runs alongside other, sharing resources including CPU and memory. The runtime (that is Windows Azure Web Sites system) remove sites from memory after period of idleness – that is when your site doesn’t get any traffic. The runtime make the decisions removing sites, bases on many parameters,

What is an IIS application pool?

天大地大妈咪最大 提交于 2019-11-27 16:43:10
What exactly is an application pool? What is its purpose? Ender Application pools allow you to isolate your applications from one another, even if they are running on the same server. This way, if there is an error in one app, it won't take down other applications. Additionally, applications pools allow you to separate different apps which require different levels of security. Here's a good resource: IIS and ASP.NET: The Application Pool Basically, an application pool is a way to create compartments in a web server through process boundaries, and route sets of URLs to each of these

Stop IIS 7.5 Application Pool Recycling

拟墨画扇 提交于 2019-11-27 14:49:38
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? 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 effect, but you can also disable that using the "Disable Recycling on Configuratoin Changes". Finally if you are

IIS Application pool PID

a 夏天 提交于 2019-11-27 11:19:17
is anyone familiar with a way to get the Application pool that is associated with a process ID ? I am using Win32_Process to query the W3WP services and return the PID now I am trying to get the app pool associated with it. Jim If you are just using command line to figure it out ad-hoc you can do this too: The script is already placed in systemroot\system32 on Windows Server 2003 so simply go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you'll have an instant list of all the App Pool information you've always wanted to know. You may need to type cscript iisapp.vbs