I am running the following cmd on my MSBuild using PsEXEC.
%systemroot%\system32\inetsrv\appcmd stop apppool /apppool.name:MyAppPool
If the MyAppPool
is already stopped, and try to stop again, I am getting error message.
ERROR ( message:Application pool "MyAppPool" already stopped.
This is stopping my build. How to handle this situation?
If MyAppPool is already started and issue a start again, no error message appears.