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.


Comments

Popular posts from this blog

Clean up AppFabric Dashboard Part 2: Duplicate collection entry in Web.config

In Part one I have already described how to remove phantom apps here on more supplement. These phantom apps could also remain in the AppFabric Monitoring db:


Just delete no longer needed entries in this table.
Duplicate collection entry When you receive this kind of issue, like "[...] Cannot add duplicate collection entry [...]" you have defined the a configuration section twice in two different Web.config files in different places in your file system.

Clear One easy solution is to use a clear statement. Searching for the inherited element There is a post in Microsoft's documentation which is explaining how to do it. Visual Studio in debug mode When you are working with Visual Studio in debug mode, which means you are just pressing F5 to run it on your local IIS instead of publishing it to a web server, you should keep in mind that e.g. your obj folder might contain more copies of your Web.config file. This could lead into this duplicate collection issue as well.

How to integrate AVM smart devices into HomeKit by using openHAB

After some evaluating openHAB (Vers. 2.2.0) on my NAS I wanted to do it right and started with this (German) article to use openHABian together with a Raspberry Pi.My primary goal was to integrate my AVM smart home devices to control them with HomeKit.

To get started I used the following items:
Raspberry PISD Card 16 GB And the following software (I used a Mac, so you might need to replace some tools if you use another OS): Download the latest openHABian image here. This is a dedicated linux distribution to provide an openHAB server.Download SD Formatter here. Needed to format your SD card.Download Etcher here. Needed to install the openHABian image on the SD card. Installation openHABianInsert the SD cardConnect the Raspberry Pi via LAN with your networkPlugin the Raspberry PiWait about 45 minutes until all updates were installedWhen everything went well you should be able to connect to http://openhabianpi:8080Connect via ssh: ssh openhabian@openhabianpi (standard password: openhabian)…

How does AppFabric cache calculates the values for RequestCount, ReadRequestCount, WriteRequestCount and MissCount?

When I started to use the Get-CacheStatistics cmdlet to monitor caching activities more intensivley I was often confused. Here an example:


Should not be ReadCount+WriteCount = RequestCount? Why is WriteRequestCount increasing +2 although I just send one put request?

By talking to Microsoft support I figured out how AppFabric cache calculates its numbers (Thanks to Gayathri from Distributed Service Team). Number calculation behavior depends on your configuration, high availability and local cache have a major impact on it.
ActivityRequestCount ReadRequestCount WriteRequestCount MissCount DataCacheFactory is initialized and Named Cache is up +1---Put item, not yet in local and server cache+1-+1 (+2 with HA)+1Get item from local cache----Get item from server cache, local cache has expired+1+1--Get item, local and server cache has expired+1+1-+1
I hope this is helpful for you when you are analyzing the caching behavior for your application.