I have been trying to use Windows Azure AppFabric Cache from the Appfabric Labs. It is working fine for an ASP.NET application if the target framework is 4.0.
However, it doesn't work for framewrok 3.5 and thus i am not able to use it for a cloud service's web role ( i know new release of azure supports 4.0 too)
the error i get for an ASP.NET 3.5 application is:
Server Error in '/' Application.
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.Web.DistributedCache' or one of its dependencies. The system cannot find the file specified.
Line 34: <sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
Line 35: <providers>
Line 36: <add name="AppFabricCacheSessionStoreProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="default" useBlobMode="false"/>
Line 37: </providers>
Line 38: </sessionState>
Yes I want to confirm if this Microsoft.Web.DistributedCache dll will work with .net3.5 web apps. I'm getting the same probs, can only get it to work by switching my entire project to .net 4 which I'm not ready to switch to in production.
You can easily re-create the problem by creating any new web project (.net3.5), then copy/paste client code from CTP Cache portal and poof. You get the error. Switch to .net4 and you're rolling.
I have searched high/low and cant get a straight answer with regards to this session state cache client config.