2014-05-22 1 views
0

공유 호스팅 환경의 MVC 앱에서 DevTrends Donut Caching을 사용하려고합니다.중간 신뢰 환경에서 OutputCacheProfiles (webconfig에 있음)에 액세스 할 수 있습니까?

System.Security.SecurityException: MvcDonutCaching does not have permission to read web.config section 'OutputCacheSettingsSection'.

호스트 공급자가 이러한 제한으로 인해 중간 신뢰 환경에 있음을 말한다 : 나는 응용 프로그램을 업로드 할 때

나는이 오류가 발생합니다.

나는 이것에 대해서 충분히 숙지 할 수는 없지만 중간 Web.Config 설정은 중간 신뢰 하에서는 사용할 수 없다는 것은 이상하거나 부당합니다.

I have added some code to allow MvcDonutCaching to be used in a strict Medium Trust environment

내가 중간 신뢰 환경에서 이러한 설정에 액세스 할 수 있어야합니다 :

플러스, 2012 년 this workitem의 하단에, 저자는한다고 ?

내가 Web.config의에서 사용하고 캐싱 설정은 다음과 같습니다 : 내가 여기에 대한 답을 찾을

<system.web> 
    <caching> 
     <outputCacheSettings> 
     <outputCacheProfiles> 
      <add name="CacheFor1Hour" duration="3600" varyByParam="none" /> 
      <add name="RecacheOnUpdate" duration="2419200" varyByParam="*" /> 
      <add name="Dashboard" duration="86400" varyByParam="*" varyByCustom="User" location="Server" /> 
     </outputCacheProfiles> 
     </outputCacheSettings> 
    </caching> 
    </system.web> 

답변

0

확인 : 당신은 그냥 할 수없는 것처럼 http://mvcdonutcaching.codeplex.com/workitem/2466

그래서 보이는 그것은 엄격한 중간 신뢰 환경에서입니다. 내 호스팅 회사가 아래의 견적에서 "대부분의 호스팅 회사"와 같았 으면 좋겠다. :-(

관련 문제