공유 호스팅 환경의 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>