application-pool

IIS 6.0 Application Pool crash

大城市里の小女人 提交于 2019-12-03 11:40:44
问题 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 Computer: xxxxxxxxxxxxx Description: A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '3788'. The data field contains the error number. 8007006d I have a few very

Is it possible to start / stop an application pool or website in IIS programatically?

牧云@^-^@ 提交于 2019-12-03 11:22:08
问题 I'm trying to find a way to stop, start, restart/recycle websites and application pools from within a web interface on the same server. Ideally this would be something I could do with .NET without having to execute shell commands. (I see other related questions have been asked but I don't want to do this from the command line unless that's necessary). I need to be able to do this for both IIS6 and IIS7. 回答1: You are looking for the Microsoft.Web.Administration.ServerManager class. You can

authentication issue with an intranet website running under IIS6

谁说我不能喝 提交于 2019-12-03 04:00:51
I have an an intranet website running under IIS6 (under a specific port, not the default one) with a integrated windows authentication enabled and uses an application pool configured with a service account. the issue is, if I access the website using the server name with a fully qualified domain in the URL, it throws a login prompt (doesn't work even if enter my windows login credentials), but if I use the IP address of the server then it works fine. Please let me know what I need to do to get the URL with server name working. for example http://servername:8080/default.aspx throws login prompt

What is the difference between DefaultAppPool and Classic .NET AppPool in IIS7?

别来无恙 提交于 2019-12-03 01:28:30
问题 I have a problem with timeouts in IIS. In the web.config the session timeout was set to 60 minutes but after 20 minutes the session ends. This problem only occurs in IIS7 and not in IIS5. After some investigation, I discovered it was due to the application pool's timeout. If the App Pool is left 20 minutes without doing anything, IIS ends the session. If the application is using the defaultAppPool this always happens but if I change the App Pool to the classic .NET App Pool, the timeout does

What are optimal settings for Recycling of Application Pools in IIS7 in shared environment?

可紊 提交于 2019-12-03 01:04:20
问题 What are optimal settings for Recycling of Application Pools in IIS7 in a shared environment? 回答1: As a Hoster, you definitely want to recycle on Memory & Time, potentially Request limits and CPU. You want to be pretty aggressive about these limits, but make sure you publish them to your clients. Memory - 512 for an x86 box, maybe 768. For x64, you can set this much higher depending on the number of hosts per server. You just have to be careful and watch your app pool recycle events on memory

Create an application pool that uses .NET 4.0

最后都变了- 提交于 2019-12-02 20:18:29
I use the following code to create a app pool: var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName); DirectoryEntry newpool; DirectoryEntry apppools = new DirectoryEntry(metabasePath); newpool = apppools.Children.Add(appPoolName, "IIsApplicationPool"); newpool.CommitChanges(); How do I specify that the app pool should use .NET Framework 4.0? I see from the tags you're using IIS7. Unless you absolutely have to, don't use the IIS6 compatibility components. Your preferred approach should be to use the Microsoft.Web.Administration managed API. To create an application pool

IIS App Pools - Stop/Start vs Recycle

自作多情 提交于 2019-12-02 17:27:43
I've noticed that on one of my production web apps, when I manually recycle an app pool, the recycled worker process can take upwards of 60+ seconds to actually be completely destroyed, based on watching it in Task Manager. However, if I stop the app pool completely, the worker process goes away nearly instantaneously - within 1-2 seconds. So, my question is two-fold: a) Why does it take so long to destroy the process (and more meaningfully, release the resources used/locked by it) when the app pool is recycled instead of stopped; and b) Assuming that I've stopped traffic from being directed

Different Default Document for IIS Sub Application

人走茶凉 提交于 2019-12-02 07:20:17
I have an IIS website running an ASP.NET site but it has multiple applications running under it (a virtual directory with separate app pools basically). Well - I need two separate applications which point to the same root folder director but I want the apps to have separate default documents. The reason is because this is how it is configured in production and this is on my development box. The problem is that IIS keeps giving me the SAME default document for both apps (which are separate virtual paths and separate app pools just same physical location). How can I overcome this or can I not in

ApplicationPoolIdentity cannot access network resources

此生再无相见时 提交于 2019-12-02 02:50:30
问题 My Setup: W2K8-R2 IIS7.5 x64bit servers (app pool is running in 32bit, though) We have a (.net 4.0) web application that runs under the "ApplicationPoolIdentity". It has "Windows Authentication" enabled. The web app calls a web service on different (older - W2K3 II6) web server (same domain). The web service requires Windows Authentication as well. On some of our web servers, this works well and I can see that the Web App calls the web service and identifies itself as the machine name for the

ApplicationPoolIdentity cannot access network resources

不羁岁月 提交于 2019-12-01 23:26:34
My Setup: W2K8-R2 IIS7.5 x64bit servers (app pool is running in 32bit, though) We have a (.net 4.0) web application that runs under the "ApplicationPoolIdentity". It has "Windows Authentication" enabled. The web app calls a web service on different (older - W2K3 II6) web server (same domain). The web service requires Windows Authentication as well. On some of our web servers, this works well and I can see that the Web App calls the web service and identifies itself as the machine name for the web server it is running on (as expected). However on other web servers the application will not