Skip to main content

Cleanup AppFabric Dashboard Part 1: Old virtual paths and phantom applications on IIS

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.

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.

To prevent this issue

Always remove deployments like this to avoid, or at least reduce the risk to run into this issue.


Popular posts from this blog

How to delete Azure Active-Directories

When I was trying to delete an Azure Active-irectory by using the management portal I have received the error message “Directory contains one or more applications that were added by a user or administrator” and I was really confused.

Then I found out this is a common issue. The solution was even more confusing, some PowerShell cmdlets are needed. Unfortunately I was not able to proceed, it was not possible to login with my Microsoft-ID to execute the needed commands.

Here I found out I have to install the correct version of the tools. These are located here.

Did you ever think about two-step verification to increase your password security?

My feeling is that two-step verification is still not very common, although a lot of services are listing this feature. Here you will find them:
Facebook Google Microsoft Twitter Evernote Dropbox Apple (currently just available in U.S., UK, Australia, Ireland, and New Zealand) Helpful apps are e.g. Google Authenticator or Authy.
Updated my list on 27.02.2014 with some more services Buffer Yahoo! Apple added, Canada, France, Germany, Italy, Japan, Spain Updated my list on 10.03.2014 with one more Hootsuite Updated my list on 26.03.2014 tumblr Updated my list on 02.04.2014 APP.NET LinkedIn

Have you ever reconsidered your personal iPhone security policy?

Why should I reconsider my iPhone security policy? I have my iPhone four digit pass code and Find my iPhone feature feature is activated. So how should abuse be possible? What could a thief be doing with my stolen iPhone? Well, possibly quite a lot. At least the bold print bullets in this article should be mandatory for everyone. Of course this is no guarantee for invulnerability but it will improve your security. After watching this video you should consider the following actions:
Change your Apple ID rescue mail address and do not add this mail account to your iPhone.Consider to use a proper and usable password policy for your Apple ID like this or this (German article).Consider a complex pass code for your iPhone. As you can see in the video four digit pass codes can be hacked in no time on iPhone 4. For newer iPhone a leak is not yet known but it is properly there. Definitely do not use these pass codes.Alternative to point three: activate delete iPhone after 10 wrong attempts (Go …