AppFabric 错误代码<ERRCA0017><ES0006> :

标签 appfabric appfabric-cache

我已经在服务器上安装了 AppFabric。我已经创建了一个由一台计算机组成的集群。我还创建了一个名为“Gagan”的缓存。
按顺序使用以下命令

使用-CacheCluster -Provider xml -ConnectionString\NB-GJANJUA\Cache
启动缓存集群

结果是缓存服务启动并运行......到目前为止一切顺利。

然后我设置我的 web.config 文件,如下所示

<?xml version="1.0"?>
<configuration>
    <configSections>
    <section name="dataCacheClient"
type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
        Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, 
        Culture=neutral, PublicKeyToken=31bf3856ad364e35"
allowLocation="true"
allowDefinition="Everywhere"/>   

</configSections>

<!-- cache client -->
<dataCacheClient>
<!-- cache host(s) -->

<hosts>
  <host
     name="NB-GJANJUA.com"
     cachePort="22233"/>
</hosts>
</dataCacheClient>

<system.web>    

<compilation debug="true" targetFramework="4.0" >
    <assemblies>
      <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      <add assembly="Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add assembly="Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </assemblies>
</compilation>

<sessionState mode="Custom" customProvider="SessionStore" cookieless="true">
  <providers>
    <add name="SessionStore" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" cacheName="Gagan" />
  </providers>
</sessionState>
</system.web>

<system.webServer>
 <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>

但是一旦我启动我的网站,就会出现这个错误

解析器错误消息:ErrorCode:SubStatus:出现临时故障。请稍后重试。 (一个或多个指定的缓存服务器不可用,这可能是由于网络或服务器繁忙造成的。确保已为此客户端帐户在群集上授予安全权限,并且允许 AppFabric 缓存服务通过所有缓存主机上的防火墙。稍后重试。)

源错误:
Line 44:     <sessionState mode="Custom" customProvider="SessionStore" cookieless="true">
Line 45:       <providers>
Line 46:         <add name="SessionStore" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" cacheName="Gagan" />
Line 47:       </providers>
Line 48:     </sessionState>

有什么我想念的吗?

注意:我已经引用了
Microsoft.ApplicationServer.Caching.Client 和
Microsoft.ApplicationServer.Caching.Core 程序集

感谢您的时间和耐心

带着敬意
加根·詹朱亚

最佳答案

您是否授予您网站运行的任何用户访问缓存的权限?

Grant-CacheAllowedClientAccount Gagan

关于AppFabric 错误代码<ERRCA0017><ES0006> :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3892224/

相关文章:

.net - 如何设计一个 ASP.NET MVC 站点以使用 Velocity 进行缓存?

powershell - 重复的命令行参数

c# - 应用结构 : Is there any difference between default and named cache?

serialization - AppFabric 缓存 - 我可以指定用于所有对象的序列化样式吗?

asp.net - 应用程序池的Appfabric缓存和回收

redis - AppFabric 缓存到 Redis - 等效于 GetAndLock 方法?

c# - 手动在 AppFabric 中缓存 MVC View

azure - 如何在 Azure 上部署自定义 DataCacheStoreProvider 以进行直写和后读

windows-server-2008 - AppFabric 缓存压缩是否会导致数据以压缩形式存储在服务器上?