AppFabric Caching has one error which you will learn to hate:
ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Retry later.)
This message could mean a variety of different things, such as:
- Client vs. Server security is wrong
- Disposing the factory too soon
- Not enough physical memory
- Corruption of the cache
However for me none of those were the cause of my pain. My issues was:
Copy & Paste Stupidity
I copied and pasted the settings for my deployment and so I had the following config issue:
<dataCacheClient> <!-- cache host(s) --> <hosts> <host name="cacheServer1" cachePort="22233"/> </hosts> </dataCacheClient>
However my server was DEMO-PC, so I needed to change that to the following:
<host name="DEMO-PC" cachePort="22233"/>
The only way I found this was to hit the event log and scroll down through the error message. About halfway down was the cause, as clear as day.