IIS 7 and Above
Configuration & Scripting
Issues in restarting the app-pool trough c# utility using microsoft.w...
Last post Mar 02, 2018 03:50 AM by Yuk Ding
Feb 04, 2018 04:13 PM|Bhargavi B|LINK
Hello Support Team,
We are facing an issue with “Application Pool” refresh in IIS 8.5 in Windows Server 2012 R2 Standard.
We used a .Net Console application to start the application pools which are in stopped state. This application is working as expected with IIS 7 in “Windows Server 2008“ and refreshing the Application Pools whenever we ran the program.
But when we ran same application in Windows Server 2012 R2 Standard which is having IIS 8.5 version, stopped application pools were starting and web site starts working as expected but the status of the application pools are not changing to start state even
after refreshing the IIS application pools node.
Technical details of the Console application:
Application Type: Console (.exe)
IDE : Visual Studio 2010/2013
.Net Framework Version : v3.5
Microsoft.Web.Administration.dll Version used : v8.5, v6 (tried with both versions)
Could you guide us to resolve this strange issue when we are trying to use same .Net program in updated version of IIS (8.5).
Feb 05, 2018 10:00 AM|Yuk Ding|LINK
So could you find the w3wp.exe in task manager? If it is activated, then the status should be changed to running. Enable the IIS application pool also require the administrator privilege. So have you check the permission is available for your application?
Feb 07, 2018 04:54 AM|Bhargavi B|LINK
Thanks for the response. I am able to restart the apppool from IIS directly with out any issue but when trying to start the apppool from the cmd prompt/c# application it is getting started internally and the site attached to that apppool is also working
fine but in IIS we are still seeing the status as stopped.
Today I tried from cmd prompt by opening it as administrator and even received message as apppool started successfully, but I am still not able to see the started status apppool in IIS user interface. Can you please let us know if I am missing something.
Feb 07, 2018 08:54 AM|Yuk Ding|LINK
What is the status for your application pool if you run appcmd list apppools? Could you provide a screenshot with both task manager w3wp.exe and your IIS manager app pool status. If there is some problem with the WAS, the app pool should not be activated
and what command did you use.
In addition, please fresh the application pool panel if the application pool status get changed while the status will not be changed real-time.
Feb 08, 2018 04:49 PM|Bhargavi B|LINK
I am using the below command to start the apppool from windows cmd prompt. Also I am refreshing the app-pool panel every time but the status is not getting refreshed. I even tried by resetting the IIS and didn't have any luck.
cmd: c:\windows\system32\inetsrv> appcmd start apppool / "apppoolname"
I have validated and the WAS process was in running state and when I tried to check the w3wp.exe process from taskmanager , I am not able to find the exact process details from the task manager in windows server 2012. Could you please guide me with steps
from were I can validate the process and further assistance to resolve the issue.
Mar 02, 2018 03:50 AM|Yuk Ding|LINK
Did you login and run comd as administrator? IIS also require the administrator privilege to control the application pool.