Azure 데이터 캐시에서 데이터를 가져 오는 새로운 MVC 앱을 만들고 있습니다. 그러나 DataCache
객체를 인스턴스화하면 코드가 무한정 중단됩니다. 나는 오류나 타임 아웃을 얻지 못한다. 단지 새로운 객체를 생성하려고 시도한다. 결코Azure DataCache 인스턴스화
public ActionResult Index()
{
DataCache cache = new DataCache();
Debugger.break;
}
꾸물 거리지 new DataCache()
문을지나 가져옵니다
는 순간 내 코드는 문자 그대로 이하이다. Visual Studio에서 디버거를 일시 중지하면 new DataCache()
행에서 일시 중지되는 것을 볼 수 있으므로 실행이 멈춘 곳이 분명합니다. 내가 두 번 푸른에서 그와 함께 Web.config의 경기에서 값을 확인했습니다
<dataCacheClients>
<dataCacheClient name="default">
<!--To use the in-role flavor of Windows Azure Caching, set identifier to be the cache cluster role name -->
<!--To use the Windows Azure Caching Service, set identifier to be the endpoint of the cache cluster -->
<autoDiscover isEnabled="true" identifier="{{REMOVED}}" />
<!--<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />-->
<!--Use this section to specify security settings for connecting to your cache. This section is not required if your cache is hosted on a role that is a part of your cloud service. -->
<securityProperties mode="Message" sslEnabled="false">
<messageSecurity authorizationInfo="{{REMOVED}}" />
</securityProperties>
</dataCacheClient>
</dataCacheClients>
다음과 같이
내 Web.config의 내가 새 푸른 캐싱 패키지를 가져올 때 NuGet에 의해 추가 된 부분이있다 포털과 그들은 괜찮아.
누구든지이 문제의 원인을 알고 있습니까? 나는 그것이 얼마나 새로운지를 생각해 볼 때, 아주 기본적인 것을 추측하고 있습니다.
어떤 유형의 캐시를 사용하고 있습니까? 공동 위치, 헌신적 인 역할 또는 공유? – viperguynaz
다음과 같습니다 : - 캐시 오퍼링 - 기본 캐시 메모리 - 1GB 위치 - 서유럽; '유형'은 어떻게 결정합니까? Azure 포털에서 새 데이터 서비스 캐시 (미리보기)를 설정하고 거기에 설정했습니다. – LDJ