ERRORCODE ERRCA0002: Could not contact Cache service
-
03 Ekim 2008 Cuma 21:30
I have two machine , one is my lap top without visual studio but has .Net 3.5 framework where i have set up the cluster and then i have my primary dev machine with Visual Studio and 3.5 framework which has the Dev1 environment as per the the CTP documentation .
I have the shared folder for cluster also set up on the dev machine.
When i run the following code from my dev environment .
CacheFactory CacheCluster1 = new CacheFactory();
Cache Cache1 = CacheCluster1.GetCache("Cache1");
Cache1.Add("cachedStringKey1", "This string will be stored in cache");
I get an error
Unhandled Exception: System.Data.Caching.CacheException: ErrorCode<ERRCA0002>:Ca
che::Add : Could not contact the cache service. Contact administrator and refer
to product help documentation for possible reasons.
at System.Data.Caching.Cache.ExecuteAPI(RequestBody reqMsg, String apiName)
at System.Data.Caching.Cache.Add(String region, String key, Object value, Tag
[] tags)
at System.Data.Caching.Cache.Add(String key, Object value)
at VelocityDev1.Program.Main(String[] args) in C:\Users\amitgala\Documents\Vi
sual Studio 2008\Projects\VelocityDev1\VelocityDev1\Program.cs:line 15
Press any key to continue . . .Note :
I have already made the change in app.config to point to machine where i have set up my cluster.
All machines are in corpnet environment.
Any help is highly appreciated.
Thanks
Amit
Tüm Yanıtlar
-
10 Ekim 2008 Cuma 13:02
Do you have logs enabled? Can you share them?
Amit,
MSFT.
-
10 Ekim 2008 Cuma 13:19
Before that, can you provide your app.config?
Amit,
MSFT.
-
15 Kasım 2008 Cumartesi 18:20Moderatör
Hi
1. You would need to create the named cache before use (in the name of "Cache1") in the cluster from the admin tool. Refer to the admin commands for help on how to do it.
2. You should have no firewall of connectivity problems between the client code and the cache service.
3. If the problem still persists, please do share the configuration files.
Thanks,
Ankur.