내 콘솔/웹 응용 프로그램에서 DataCache를 시작할 때 문제가 있습니다. 오랜 시간이 지나면 아래 이미지에 예외가 표시됩니다. DataCacheFactory 및 간단한 DataCache를 사용하여 모든 방법을 시도했지만 동일한 문제가 발생합니다. 이 문제와 관련하여 저를 도우십시오! Enters image description here콘솔 기본 응용 프로그램에서 Windows Azure 캐싱이 인스턴스화되지 않습니다.
0
A
답변
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
대부분 네트워크 문제를 나타냅니다. 적중하려는 엔드 포인트에 도달 할 수 없는지 또는 dns가 제대로 해결되는지 확인하여 해당 사항을 확인하십시오.
datacachefactory를 처분하고 있습니까? 끝점은 캐시 포털에서 제공 한 전체 내용이어야합니다. yourchosencahcename.cache.windows.net
관련 문제
- 1. 콘솔 응용 프로그램에서 Windows 응용 프로그램으로 이동
- 2. Windows 콘솔 응용 프로그램에서 ax2012 서비스 사용
- 3. Azure Blob, json 파일 캐싱이 작동하지 않습니다.
- 4. 콘솔/Windows 응용 프로그램에서 DNN 사용자 만들기
- 5. Windows 응용 프로그램에서 OpenCV 콘솔 디버그
- 6. 콘솔 응용 프로그램에서 .NET Windows 양식으로
- 7. 콘솔 응용 프로그램에서 web.config를여시겠습니까?
- 8. RegistryState가 콘솔 응용 프로그램에서 작동하지 않습니다.
- 9. 콘솔 응용 프로그램의 Windows 기본 크기
- 10. 콘솔 응용 프로그램에서 FileVersionInfo.GetVersionInfo()가 올바르지 않습니다.
- 11. user32 MoveWindow는 C#, Windows 7, 콘솔 응용 프로그램에서 작동하지 않습니다.
- 12. 콘솔 응용 프로그램에서 TIdTCPServer.OnExecute
- 13. Windows 응용 프로그램에서 콘솔 응용 프로그램으로 전화 응용 프로그램을 전달
- 14. 응용 프로그램에서 콘솔 열기
- 15. 콘솔 응용 프로그램에서 GUI로 변환
- 16. 다른 콘솔 응용 프로그램에서
- 17. 콘솔 응용 프로그램에서 async/await가 작동하지 않습니다.
- 18. Task.Factory.StartNew가 콘솔 C# 응용 프로그램에서 작동하지 않습니다.
- 19. Windows Azure 기본 인증
- 20. 콘솔 응용 프로그램을 Azure webjobs로 변환
- 21. 콘솔 응용 프로그램에서 HttpContext.Current.Application을 설정하십시오.
- 22. 는 콘솔 응용 프로그램에서 다음
- 23. Windows 응용 프로그램에서 콘솔 응용 프로그램으로 데이터 전송
- 24. C++ 콘솔 응용 프로그램에서 PlaySound?
- 25. 콘솔 응용 프로그램에서 WebBrowser 사용
- 26. 콘솔 응용 프로그램 : 기본
- 27. MSVC++ 콘솔 응용 프로그램에서 어떻게 잠자기합니까?
- 28. C++ 응용 프로그램에서 Azure 모바일 서비스 사용
- 29. 조각화가 제대로 인스턴스화되지 않습니다.
- 30. "printf"는 Windows 비 콘솔 응용 프로그램에서 어디에서 씁니까?
Nuget 패키지를 통해 구성 파일을 추가하고 서비스 끝점도 추가해야합니다. – AAJ
그리고 Windows Azure 관리 포털에서도 만들었습니다. 거기에서 [역할 역할 이름 또는 서비스 엔드 포인트 캐시]를 가져옵니다. 그것을보십시오 : weblogs.asp.net/scottgu/archive/2013/09/03/windows-azure-new-distributed-dedicated-high-performance-cache-service-more-cool-improvements.aspx –
나는 시도했다 그러나 아니오 행운 : ( – AAJ