user153923
user153923

Reputation:

How are Applications Removed from the IIS Application Pool?

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. )

Could someone tell me what I missed here?

screenshot

Upvotes: 12

Views: 40949

Answers (4)

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

Jener Garcia Menezes
Jener Garcia Menezes

Reputation: 656

Using Powershell

  1. Go to folder
    cd C:\Windows\system32\inetsrv
  2. List all applications to get the correct APP.NAME
    .\appcmd list app
  3. Delete the application using fullname for <APP.NAME>.
    Ex.: "Default Web Site/The.Application".
    I mean, you must put it with web site name including the double-quotes.
    .\appcmd delete app <APP.NAME>

Upvotes: 29

Lex Li
Lex Li

Reputation: 63264

appcmd delete app eng_app/drawing

Upvotes: 0

user153923
user153923

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:

  1. go down to the list of Sites and select my application from the list,
  2. click Basic Settings...
  3. change the Application pool with the Select... button and edit the Physical path

Afterwards, you can restart the webservice.

screenshot

There might be a better way, but this is how I did it.

Upvotes: 3

Related Questions