I have a windows 2008 R2 server using AppFabric caching services to fuel an ASP.NET site.

When I restart the server, the AppFabric caching won't start with it. I have to start it manually. I've checked with the Services and the 3 AppFabric services are set to automatic.

There are sometimes when it will start, but I can't understand when it will start and when it will not. Any Ideas?

2 Answers 2


Are you using the XML Configuration provider? There's a piece here detailing how there are problems with auto-starting services and XML.

There's an excellent article here about getting round the problems with auto-start with a scheduled task and a bit of Powershell.


We have a scheduled task that restarts the service on server reboot by triggering a powershell script. App Fabric needs to be administered via powershell and not via Services.

Import-Module DistributedCacheAdministration

If you only have one server with app fabric instead of clustered servers, replace the Start-CacheCluster with the below command.

$computer = gc env:computername
Start-CacheHost $computerName -cacheport 22233

Sometimes, in a clustered environment the scheduled task may fail if the slave server has not rebooted properly, in that scenario starting both machines seperately may help.


AppFabric PowerShell Commands

Scheduling Task for App Fabric Restart

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .