DataCacheClient name attribute not recognized in web.config
-
2012年6月21日 22:32
HELP!!! I am trying to configure Windows Azure Cache (preview) in my web application. I think I'm close but I can't get passed this web.config error when I run it in Windows Azure compute emulator. The project builds fine and then opens to the main page with this error:
Unrecognized attribute 'deployment'. Note that attribute names are case-sensitive.
I copied the configuration settings from my windows azure cache configuration. Also, the configuration used to say <dataCacheClient name="default">. I get the same error when I use this setting also.
Here is part of the web config file:
<
<!--
copied from windows azure cache properties-->
<
section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=" allowLocation="true" allowDefinition="Everywhere" />*****end copy from windows azure cache-->
<
sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken="><
section name="MyWebRole.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=" requirePermission="false" /></
sectionGroup><
section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" /></
configSections><!--
Cache exposes two endpoints: one simple and other SSL endpoint. Choose the appropriate endpoint depending on your security needs. --><!--
simple--><
dataCacheClient deployment="Simple"><
hosts><
host name="CCSMCache.cache.windows.net" cachePort="22233" /></
hosts><
securityProperties mode="Message"><
messageSecurity authorizationInfo="YWNzOmh0dHBzOi8vY2NzbWNhY2hlLWNhY2hlLmFjY2Vzc2NvbnRyb2wud2luZG93cy5uZXQvV1JBUHYwLjkvJm93bmVyJmV0RnlvcVZUOGVzSTBlamRXQ3NaMjdBaHF5TzI1SE83UzZESlFQeUdEUmM9Jmh0dHA6Ly9DQ1NNQ2FjaGUuY2FjaGUud2luZG93cy5uZXQ="></messageSecurity></
securityProperties></
dataCacheClient><!--
全部回复
-
2012年6月22日 8:17版主
Hi,
You have submitted a same thread here:
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
-
2012年6月22日 11:33You've provided the ACS token which will be security breach(other people can use it now without your knowledge). Please delete and recreate your cache with different name immediately to get a new ACS token.
-
2012年6月22日 17:04
The problem seems related to the issue where you still might be somehow referencing the older version of Windows Server App fabric Assemblies which does not contain a definition for this "deployment" attribute. Please uninstall any older version. Also check the GAC if it contains the older version of the assemblies.
The issue was also discussed in the thread below -
-
2012年6月22日 18:06
Thanks all for the replies - Karthik, yes I realized I posted the security key in my post - I'm new to this forum and wasn't sure how to retract. I am re-creating my cache to generate the new key. Thank you.
I figured out my problem. Gaurav, it was as you suggested. I ended up installing the newer versions of the SDK and app fabric over the existing and after that did not work - I had to un-install the November 2011 Windows Azure SDK and the Windows AppFabric 1.0 versions. I then re-installed only the latest SDKs - Windows Azure SDK 1.7 and Windows AppFabric 1.5. Also, I had to remove all of the Cache references from my project and then re-install the Cache libraries using Nuget PM.
http://nuget.org/packages/WindowsAzure.Caching
Thank you again!
- 已标记为答案 AccessMSSQL 2012年6月22日 18:06

