Error using appcmd to uninstall an application using IIS 7

I am using a appcmdto script site that I am deploying. At the beginning of this, I try to remove some sites that are automatically installed on the provider's site. They need to be deleted because they are incorrectly configured on a non-existent part of the disk.

The command I use does not work:

C:\Windows\System32\inetsrv>appcmd delete app "AccessViaWeb(80)/AVInclude"  

ERROR ( message:Must use exact identifer for APP object with verb DELETE. )

I cannot understand what syntax is required to avoid this error.

The list of applications on this server can be seen with the command appcmd list apps:

C:\Windows\System32\inetsrv>appcmd list apps  
APP "Default Web Site/" (applicationPool:DefaultAppPool)  
APP "Default Web Site/OPCService" (applicationPool:DefaultAppPool)  
APP "PeopleFinder - 8010/" (applicationPool:PeopleFinder - 8010)  
APP "AccessViaWeb(80)/" (applicationPool:DefaultAppPool)  
APP "AccessViaWeb(80)/AVInclude" (applicationPool:AccessViaWeb)  
APP "AccessViaWeb(80)/AccessViaPrint" (applicationPool:AccessViaPrint)  
APP "AccessViaWeb(80)/SignFunctionService" (applicationPool:SignFunctionService)  
+3
source share
3 answers

Adding extra quotes solved this problem for me!

I had an application (Inventory) in another application (Portal):

 C:\Windows\System32\inetsrv>appcmd delete APP "WebSite/Portal/Inventory" /debug
 ERROR ( message:Must use exact identifer for APP object with verb DELETE. )

:

 appcmd delete APP "Website"/"Portal"/"Inventory"
+1

, . VDIR APP. IIS, API.

0

Sometimes you get 50 ( ERROR_NOT_SUPPORTED) error and error message

ERROR ( message:Must use exact identifer for APP object with verb DELETE. )

if the application you want to remove does not exist. The same command will be executed successfully if the application exists. So that you can treat error codes

  • 50 ( ERROR_NOT_SUPPORTED)
  • 1168 ( ERROR_NOT_FOUND)

like success.

This seems like a bug in appcmd, as it does not make sense.

0
source

All Articles