Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

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

share|improve this answer

Your Answer


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.