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 /app.name:CoinStacking /site.name:"Default Web Site" /path:/CoinStacking /physicalPath:E:\Inetpub\wwwroot\CoinStacking

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

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

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

 Photo from www.CoinStacking.com




No comments: