2014-02-13 3 views

답변

0

.config 파일을 잊어 버린 것 같습니다. Nuget을 통해 설치 했습니까? 당신은 당신이 "[캐시 역할 이름 또는 서비스 엔드 포인트]"를 설정해야합니다, 당신의 app.config를 구성해야합니다 : 그것은 오랜 시간이 지나면 실패

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <configSections> 
    <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" /> 
    <section name="cacheDiagnostics" type="Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsConfigurationSection, Microsoft.ApplicationServer.Caching.AzureCommon" allowLocation="true" allowDefinition="Everywhere" /> 
    </configSections> 
    <startup> 
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> 
    </startup> 
<dataCacheClients> 
    <dataCacheClient name="default"> 
     <!--To use the in-role flavor of Windows Azure Cache, set identifier to be the cache cluster role name --> 
     <!--To use the Windows Azure Cache Service, set identifier to be the endpoint of the cache cluster --> 
     <autoDiscover isEnabled="true" identifier="[Cache role name or Service Endpoint]" /> 

     <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="[Authentication Key]" /> 
     </securityProperties>--> 
    </dataCacheClient> 
    </dataCacheClients> 

+0

Nuget 패키지를 통해 구성 파일을 추가하고 서비스 끝점도 추가해야합니다. – AAJ

+0

그리고 Windows Azure 관리 포털에서도 만들었습니다. 거기에서 [역할 역할 이름 또는 서비스 엔드 포인트 캐시]를 가져옵니다. 그것을보십시오 : weblogs.asp.net/scottgu/archive/2013/09/03/windows-azure-new-distributed-dedicated-high-performance-cache-service-more-cool-improvements.aspx –

+0

나는 시도했다 그러나 아니오 행운 : ( – AAJ

0

대부분 네트워크 문제를 나타냅니다. 적중하려는 엔드 포인트에 도달 할 수 없는지 또는 dns가 제대로 해결되는지 확인하여 해당 사항을 확인하십시오.

datacachefactory를 처분하고 있습니까? 끝점은 캐시 포털에서 제공 한 전체 내용이어야합니다. yourchosencahcename.cache.windows.net

관련 문제