Hoping someone can help.
I have installed the dnn community edition offered in Azure. I have added a module (our own dev) that still requires session state services so I am trying to use the new Azure Cache (preview) with their instructions for using it for session state.
However I get this error:
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 99: Line 100: Line 103:
|
Source File: C:\DWASFiles\Sites\myctest\VirtualDirectory0\site\wwwroot\web.config Line: 101
I have added these segments to web.config.
Snippet
<section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
Snippet
<sessionState cookieless="false" timeout="60" mode="Custom" customProvider="AFCacheSessionStateProvider"> <providers> <add name="AFCacheSessionStateProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider,Microsoft.Web.DistributedCache" cacheName="default" dataCacheClientName="default" applicationName="AFCacheSessionState"/> providers> sessionState>
and
Snippet
<dataCacheClients> <dataCacheClient name="default"> <autoDiscover isEnabled="true" identifier="mycommittee.cache.windows.net"/> <securityProperties mode="Message" sslEnabled="false"> <messageSecurity authorizationInfo="***my stuff***"/> securityProperties> dataCacheClient> dataCacheClients>