Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an application in one of my application pools that has a virtual path of '/Site/login.aspx'. I want to remove it but it no longer exists on my computer and it's causing me issues setting up AppFabric.

I understand that you can remove these phantom applications by recreating the application in IIS and then hitting Remove. That will get rid of the application from the pool but in this case I can't recreate the application due to the /login.aspx in the virtual path

Any ideas how I remove this erroneous entry?

Thanks

share|improve this question

2 Answers 2

up vote 14 down vote accepted

Since I had the same issue; application pools with applications that did not exist anymore, I did some research and finally managed to solve the issue.

Here are some steps:

  1. Locate and edit your IIS 7 configuration file "applicationHost.config" with a text editor. It should be stored in "C:\windows\system32\inetsrv\config" Since the folder is somehow "protected", I usually edit like the following:
    1. Open Windows Explorer
    2. Navigate to "C:\windows\system32\inetsrv\config"
    3. Copy the file "applicationHost.config"
    4. Paste it to a folder where you can edit it, e.g. your Desktop
    5. Open it with your editor of choise and edit it
    6. Copy it back with Windows Explorer to "C:\windows\system32\inetsrv\config"
  2. Make a backup of your "applicationHost.config" file!
  3. Search with a text editor in your "applicationHost.config" for your non-existing applications. They should be located somewhere inside an <application ...> XML node.
  4. Delete the <application ...> node(s) of all your phantom applications.
  5. Save the file and copy it back to "C:\windows\system32\inetsrv\config"
  6. Refresh the IIS management console. Your application pools should now be without the phantom applications you previously deleted.
  7. Actually remove the now empty application pool.

That worked for me, if it does not work for you, please post a comment here. A good help was this posting on the IIS forum.

share|improve this answer
1  
Thanks Uwe, that got rid of it... –  Col Jul 20 '11 at 13:36
4  
In addition, I came across this article. I didn't use it as the solution above worked for me Hunting Zombies - How to remove orphaned iis web applications –  Col Jul 26 '11 at 9:17
1  
Powershell approach in the link in @Col's comment above is a clean solution and it works great. –  Recep Nov 27 '13 at 16:33

Why not edit MetaBase.xml directly? Of course, back it up before that.

Or create a "temp" pool, move all other apps there, remove the orig pool, and rename (if needed) the new pool.

share|improve this answer
4  
First reason: Because it's IIS7, so editing ApplicationHost.config is required! But I agree, I'm not understanding why it's not just "plonk that URL in a different App Pool first"? –  TristanK Jun 23 '11 at 21:55
2  
Thanks for the help. I had moved the URL into a temp pool first and that does remove the problem with AppFabric. However, I still cannot see how I can remove the dodgy application as you cannot delete an app pool as long as it has applications using it, and I can't delete the application from the application pool –  Col Jun 24 '11 at 8:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.