【问题标题】:Configure RedisOutputCacheProvider with Azure Redis DB使用 Azure Redis DB 配置 RedisOutputCacheProvider
【发布时间】:2015-10-10 15:11:03
【问题描述】:

拥有 Web 应用程序项目(Web 表单)和 Azure 订阅。从 Nuget 安装包 RedisOutputCacheProvider。

使用建议的配置:

<caching>
      <outputCache defaultProvider="MyRedisOutputCache">
        <providers>
          <!-- Either use 'connectionString' and provide all parameters as string OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
          <!-- 'databaseId' and 'applicationName' can be used with both options. -->
          <add name="MyRedisOutputCache" type="Microsoft.Web.Redis.RedisOutputCacheProvider"
               host="myhost.redis.cache.windows.net"
               port="6380"
               accessKey="myKey"
               ssl="true"
               connectionTimeoutInMilliseconds = "5000"
               operationTimeoutInMilliseconds = "1000"
               />

        </providers>
      </outputCache>
    </caching>

应用程序启动时出现永久性错误:无法加载类型“Microsoft.Web.Redis.RedisOutputCacheProvider”。

【问题讨论】:

    标签: azure redis stackexchange.redis


    【解决方案1】:

    已解决。 Microsoft.Web.Redis.RedisOutputCacheProvider 和 StackExchange.Redis.StrongName 库的版本之间存在冲突。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-06
      • 1970-01-01
      • 2022-10-18
      • 2016-08-09
      • 2015-01-14
      • 2020-06-24
      • 2014-11-12
      相关资源
      最近更新 更多