2015-08-27 15 views
5

Tôi đã cài đặt NuGet gói Microsoft.Web.RedisOutputCacheProvider để sử dụng với Azure Web App chạy trên nhiều trường hợp máy chủ theo các hướng dẫn ở đây https://msdn.microsoft.com/en-us/library/azure/dn798898.aspx và đang nhận được lỗi sau:ProviderException khi sử dụng một sản lượng tùy chỉnh cung cấp bộ nhớ cache RedisOutputCacheProvider

When using a custom output cache provider like 'MyRedisOutputCache', only the following expiration policies and cache features are supported: file dependencies, absolute expirations, static validation callbacks and static substitution callbacks. 

Các thiết lập cấu hình như sau:

<system.web> 
    <caching> 
    <outputCache defaultProvider="MyRedisOutputCache"> 
     <providers> 
     <add name="MyRedisOutputCache" 
      type="Microsoft.Web.Redis.RedisOutputCacheProvider" 
      port="1234" 
      host="[my host]" 
      accessKey="[my access key]" 
      ssl="true" /> 
     </providers> 
    </outputCache> 
    </caching> 
</system.web> 

tôi đã thử đặt connectionString đến một chuỗi kết nối StackExchange.Redis hợp lệ thay vì thiết lập cá nhân port/host etc ... nhưng vẫn nhận được lỗi tương tự.

Chúng tôi cũng có Microsoft.Web.RedisSessionStateProvider chạy trong cùng một ứng dụng web bằng cách sử dụng cùng một cài đặt không có vấn đề gì.

Mọi trợ giúp sẽ được đánh giá cao.

+0

Bạn có tìm thấy câu trả lời cho điều này không? Chúng tôi cũng gặp vấn đề này. –

Trả lời

Các vấn đề liên quan