cacheName attribute is not allowed

Unanswered cacheName attribute is not allowed

  • 2012年4月28日 下午 05:26
     
     

    I try to use Windows Azure App Fabric caching services

    I have configured Azure caching, add references to VisualStudio MVC project and configured web.config with Client Configuration downloaded from Azure caching service.

    My sessionState web.config section is:

        <sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
          <providers>
            <add name="AppFabricCacheSessionStoreProvider"
                 type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache"
                 cacheName="default"
                 useBlobMode="true"
                 dataCacheClientName="default"
            />
          </providers>

    </sessionState> 

    In VisualStudio I receive web.config warning: The 'cacheName' attribute is not allowed. Also, same massage is for two additional atributes (useBlobMode, dataCacheClientName)

    Any suggestions?

    Thanks

所有回覆

  • 2012年4月30日 上午 06:12
     
     

    Hi CarperX,

      You are getting this warning because you are using customProvider and these tags are not part of default session state provider tags. This applies for tags of any other custom provider as well. You can go ahead and deploy your project. It would work fine.

    Thanks,

    Alfan T P

  • 2012年4月30日 上午 06:26
     
     

    Hi,

    If you have all the windows  azure app fabric caching libraries referenced the above mentioned warning won't create any issues. You can ignore these warnings and proceed.

    Thanks

    Arun


    arunks

  • 2012年5月2日 上午 12:15
     
     

    Hi!

    I have referenced all required libraries and I was following documentation and client configuration from Azure app fabric.

    I could not test this configuration in emulator?

    How to resolve this?

    Thanks

  • 2012年5月14日 上午 11:17
     
     
    After adding the reference to Microsoft.Web.DistributedCache, my problem got resolved.