Reputation:
We've got a new server, and I am trying to set it up for our website.
I got a new application for the engineers set up in the Application Pools called eng_app
, then added our applications to it.
Now, we have been given an external drive that these applications need to be on, but I can't seem to edit or delete the existing applications.
I tried following the Microsoft Technet Article • Remove an Application (IIS 7) but, as you can see in the screenshot, those are incorrect.
C:\Windows\System32\inetsrv>appcmd delete app "eng_app/drawing"
ERROR ( message:Cannot find APP object with identifier "eng_app/drawing". )C:\Windows\System32\inetsrv>appcmd delete app "/eng_app/drawing"
ERROR ( message:Must specify the APP object with identifier or "APP.NAME" parameter. )
Upvotes: 12
Views: 40949
Reputation: 1
my experience solved: List Applications: You can use the appcmd list app command to obtain a list of all the applications configured on your server, using powershell:
First: Go to the default installation directory for Internet Information Services (IIS):
cd C:\Windows\system32\inetsrv
Second: run command is used to list the web applications configured in IIS:
appcmd list app
Result: Name App APP "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" (applicationPool:xxxxxxxxxxx)
Third: Delete Application: Use the appcmd delete app command to delete a specific application. Adjust the app name as needed.
appcmd delete app /app.name:miservicio.serv.com/site/site1
For example:
appcmd delete app /app.name:miservicio.serv.com/site/site1/site1.1
Delete Apps with a Prefix: You can use wildcards to delete multiple apps with a common prefix.
appcmd delete app /app.name:miservicio.serv.com/site/site1/site1.1/*
Upvotes: 0
Reputation: 656
Using Powershell
cd C:\Windows\system32\inetsrv
.\appcmd list app
.\appcmd delete app <APP.NAME>
Upvotes: 29
Reputation:
OK, it looks like you can't do it either through the command line or using the Application Pool interface.
After stopping the webservice, what I did was:
Afterwards, you can restart the webservice.
There might be a better way, but this is how I did it.
Upvotes: 3