Tôi đang cố bắt đầu với Azure và đang cố gắng sử dụng tính năng Caching. Tôi đã tạo một dự án dịch vụ đám mây và thêm vai trò của nhân viên Cache và vai trò web. Tôi đã cài đặt "Windows Azure Caching" nuget vào các dự án cho cả hai vai trò và thêm tên của vai trò nhân viên bộ nhớ cache làm định danh trong phần tử DataCacheClients trong web.config của vai trò web.Ngoại lệ khi sử dụng Windows Azure Caching: Không có máy chủ nào được biết là
tôi đã thêm đoạn mã sau vào vai trò web:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
Khi tôi cố gắng chạy cục bộ trên giả lập, tôi nhận được ngoại lệ sau đây:
ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure.
Please retry later. (One or more specified cache servers are unavailable,
which could be caused by busy network or servers. For on-premises cache clusters,
also verify the following conditions. Ensure that security permission has been granted
for this client account, and check that the AppFabric Caching Service is allowed through
the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater
than or equal to the serialized object size sent from the client.).
Additional Information : The client was trying to communicate with the server: net.tcp://MvcWebRole1:24233.
Inner Exception : No such host is known
bạn có thể vui lòng cho tôi biết những gì tôi đang thiếu ở đây?
Azure SDK được sử dụng: v2.0
Thật bi thảm, thời gian của câu hỏi này cũng tốt cho tôi. :-) –