2015-08-27 14 views
5

मैं Azure वेब एप्लिकेशन यहाँ https://msdn.microsoft.com/en-us/library/azure/dn798898.aspx निर्देशों का पालन एकाधिक सर्वर उदाहरणों पर चल रहा है और निम्न त्रुटि प्राप्त कर रहे हैं साथ प्रयोग के लिए nuget पैकेज Microsoft.Web.RedisOutputCacheProvider स्थापित किया है का उपयोग करते हुए:ProviderException जब एक कस्टम उत्पादन कैश प्रदाता 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. 

<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> 

मैं बजाय एक वैध StackExchange.Redis कनेक्शन स्ट्रिंग को connectionString की स्थापना व्यक्ति की स्थापना की कोशिश की है: कॉन्फ़िगरेशन सेटिंग इस प्रकार है बंदरगाह/मेजबान आदि ... लेकिन फिर भी एक ही त्रुटि प्राप्त करते हैं।

हमारे पास Microsoft.Web.RedisSessionStateProvider भी एक ही वेब ऐप में चल रहे हैं, बिना किसी समस्या के एक ही सेटिंग का उपयोग कर।

किसी भी मदद की सराहना की जाएगी।

+0

क्या आपको इसके लिए कोई जवाब मिला? हमें यह समस्या भी है। –

उत्तर

4

सुरक्षित नियंत्रक क्रियाओं के साथ RedisOutputCacheProvider का उपयोग करना जो AuthorizeAttribute का कुछ स्वाद नियोजित करता है अपवाद का कारण बनता है। यह अनुमति दें अनाम कार्यों के लिए ठीक काम करता है। नीचे मदद कर सकते हैं:

Why can't I combine [Authorize] and [OutputCache] attributes when using Azure cache (.NET MVC3 app)?

संबंधित मुद्दे