Monday, January 27, 2014

AppCmd: Cannot find APP object with identifier ...

I'm using AppCmd for the first time to automate installations for IIS7.0 for create an app.  I kept getting this error:
Cannot find APP object with identifier "CoinStacking".
My problem was not prefacing the identifier with the website, although the examples I found on the web didn't indicate the prefix was needed - probably not needed in some circumstances.

My final appcmd to create an App and set its application pool:
%systemroot%\system32\inetsrv\APPCMD add app / /"Default Web Site" /path:/CoinStacking /physicalPath:E:\Inetpub\wwwroot\CoinStacking

%systemroot%\system32\inetsrv\APPCMD set app /"Default Web Site/CoinStacking" /applicationPool:MyPoolParty

To delete the app:
%systemroot%\system32\inetsrv\APPCMD delete app /"Default Web Site/CoinStacking" 

To reset a physical path:
%systemroot%\system32\inetsrv\APPCMD set app /"Default Web Site/CoinStacking" /[path='/'].physicalPath:E:\Inetpub\wwwroot\CoinStacking\v2

 Photo from

No comments: