When working with Windows Azure AppFabric Cache you might get following error:
ErrorCode<ERRCA0021>:SubStatus<ES0001>:Server collection cannot be empty.
Usually when I have no idea what the problem could be, I just assume that the error message is not very human friendly. The problem here is that you have probably just copied the configuration provided in management portal. Honestly you didn’t do anything wrong. The configuration there is provided to be copied.
The error shown above should be translated like “Hey dude, I like you very much, but you unfortunately use officially provided configuration which is invalid :).”
I’m sorry about that, the configuration is not really invalid. The problem is that comments in the provided configuration for SSL endpoint is not clear enough.
Here is the original config:
<dataCacheClient name="SslEndpoint">
<hosts>
<host name="dootnetpro.cache.windows.net" cachePort="22243"/>
</hosts>
<securityProperties mode="Message" sslEnabled="true">
<messageSecurity authorizationInfo="==">
</messageSecurity>
</securityProperties>
</dataCacheClient>
and this is how it should be:
<dataCacheClient name="default">
<hosts>
<host name="dootnetpro.cache.windows.net" cachePort="22243"/>
</hosts>
<securityProperties mode="Message" sslEnabled="true">
<messageSecurity authorizationInfo="==">
</messageSecurity>
</securityProperties>
</dataCacheClient>
Uuppss :)
Posted
May 12 2011, 11:16 PM
by
Damir Dobric