Tôi đã cài đặt AppFabric trên máy chủ. Tôi đã tạo ra một cụm của một máy tính duy nhất. Tôi cũng tạo bộ nhớ cache có tên "Gagan". sử dụng các lệnh sau theo thứ tựAppFabric ErrorCode <ERRCA0017><ES0006>:
Sử dụng-CacheCluster -Provider xml -ConnectionString \ NB-GJANJUA \ Cache Start-CacheCluster
Kết quả là các dịch vụ cache khởi động và chạy ..so đến nay rất tốt.
tôi sau đó cài đặt file web.config của tôi như dưới đây
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="dataCacheClient"
type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
allowLocation="true"
allowDefinition="Everywhere"/>
</configSections>
<!-- cache client -->
<dataCacheClient>
<!-- cache host(s) -->
<hosts>
<host
name="NB-GJANJUA.com"
cachePort="22233"/>
</hosts>
</dataCacheClient>
<system.web>
<compilation debug="true" targetFramework="4.0" >
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<sessionState mode="Custom" customProvider="SessionStore" cookieless="true">
<providers>
<add name="SessionStore" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" cacheName="Gagan" />
</providers>
</sessionState>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Nhưng ngay sau khi tôi khởi động trang web của tôi, nó đi kèm với lỗi này
Parser Error Message: ERRORCODE: SubStatus: Có một sự thất bại tạm thời. Vui lòng thử lại sau. (Một hoặc nhiều máy chủ Cache được chỉ định không khả dụng, có thể do mạng hoặc máy chủ bận gây ra. Đảm bảo rằng quyền bảo mật đã được cấp cho tài khoản khách hàng này trên cụm và Dịch vụ lưu trữ AppFabric được cho phép thông qua tường lửa trên tất cả các máy chủ lưu trữ bộ nhớ cache. thử lại sau) Lỗi
Nguồn:.
Line 44: <sessionState mode="Custom" customProvider="SessionStore" cookieless="true">
Line 45: <providers>
Line 46: <add name="SessionStore" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" cacheName="Gagan" />
Line 47: </providers>
Line 48: </sessionState>
có một cái gì đó mà tôi đang thiếu?
Lưu ý: Tôi đã tham khảo các Microsoft.ApplicationServer.Caching.Client và hội Microsoft.APplicationServer.Caching.Core
Cảm ơn thời gian và sự kiên nhẫn của bạn
Với mừng Gagan Janjua
Tôi thực sự không biết lý do tại sao toàn bộ cấu hình .xml không được hiển thị ở đây – Gagan