While you are working with IIS installing and uninstalling web applications you might run into this issue on AppFabric Dashboard:
Another example is this error message:
There are two steps necessary to get a cleaned AppFabric Dashboard.
C:\Windows\System32\inetsrv>appcmd.exe list vdir
VDIR "Default Web Site/" (physicalPath:%SystemDrive%\inetpub\wwwroot)
VDIR "Default Web Site/Service/App1/" (physicalPath:C:\Service\App1)
VDIR "Default Web Site/Service/App2" (physicalPath:C:\Service\App2)
VDIR "Team Foundation Server/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Templates)
VDIR "Team Foundation Server/tfs/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services)
VDIR "Team Foundation Server/tfs/queue/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Message Queue)
C:\Windows\System32\inetsrv>appcmd.exe delete vdir "Default Web Site/Service/App1/"
VDIR object "Default Web Site/Service/App1/" deleted
Search for application XML nodes in your applicationHost.config file and delete them if the the application does no longer exist. Of course, do not forget to create a backup of the file before you start changing it.
Another example is this error message:
There are two steps necessary to get a cleaned AppFabric Dashboard.
Delete old virtual paths
Old virtual paths might remain in %windir%\system32\inetsrv\config\ApplicationHost.config. To get rid of these crappy virtual paths switch to command line tool and use the following script:C:\Windows\System32\inetsrv>appcmd.exe list vdir
VDIR "Default Web Site/" (physicalPath:%SystemDrive%\inetpub\wwwroot)
VDIR "Default Web Site/Service/App1/" (physicalPath:C:\Service\App1)
VDIR "Default Web Site/Service/App2" (physicalPath:C:\Service\App2)
VDIR "Team Foundation Server/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Templates)
VDIR "Team Foundation Server/tfs/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services)
VDIR "Team Foundation Server/tfs/queue/" (physicalPath:C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Message Queue)
C:\Windows\System32\inetsrv>appcmd.exe delete vdir "Default Web Site/Service/App1/"
VDIR object "Default Web Site/Service/App1/" deleted
Remove phantom applications
The file might also contain some obsolete application entries. I found the solution here.Search for application XML nodes in your applicationHost.config file and delete them if the the application does no longer exist. Of course, do not forget to create a backup of the file before you start changing it.