Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error accessing AppFabric Cache

Im trying to get the Appfabric Cache running with IIS7 using an MVC asp.net project. Using the XML-configuration provider in a shared directory.

I can access the AppFabric Cache when using the cassini webserver (My local administrator account).

When using IIS ("ApplicationPoolIdentity") I can not get it to work, and I get the standard message that it can not connect to the host.

I have tried to grant access to different users (APPPOOL\name, NETWORKservice, Everyone and so on) to the cache but I get this null exception everytime.

PS C:> Grant-CacheAllowedClientAccount "Everyone"

Grant-CacheAllowedClientAccount : Object reference not set to an instance of an object. At line:1 char:32 + Grant-CacheAllowedClientAccount <<<< Everyone + CategoryInfo : NotSpecified: (:) [Grant-CacheAllowedClientAccou nt], NullReferenceException + FullyQualifiedErrorId :
System.NullReferenceException,Microsoft.Applicat ionServer.Caching.Commands.GrantCacheAllowedClientAccountCommand

I have two almost identical developer machines using win7 x64 (domain connected) where the error is the same on both computers.

But at my home computer (which is not domain connected) it works as expected with the same installation settings, same shared directory.

What I have done so far:

  • Reinstalled appfabric cache twice
  • Reconfigured the Cache to use another directory
  • Set configuration directory share, full access to Everyone
  • Security permissions for the directory, full access to Everyone.

Is there a way to go deeper and debug this error message or a solution to fix it?

Error from appfabric cache powershell

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <configSections>
   <section name="dataCache"     
     type="Microsoft.ApplicationServer.Caching.DataCacheSection,
     Microsoft.ApplicationServer.Caching.Core" />
</configSections>
<dataCache size="Small">
 <caches>
   <cache consistency="StrongConsistency" name="default" minSecondaries="0">
     <policy>
       <eviction type="Lru" />
       <expiration defaultTTL="10" isExpirable="true" />
   </policy>
  </cache>
 </caches>
 <hosts>
   <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
     hostId="1556989554" size="3003" leadHost="true" account="DOM\vitcpu7$"
     cacheHostName="AppFabricCachingService" name="vitcpu7.office.domain.se"
     cachePort="22233" />
</hosts>
<deploymentSettings>
  <deploymentMode value="RoutingClient" />
</deploymentSettings>
</dataCache>
</configuration>
like image 923
kiteloop Avatar asked Dec 20 '22 23:12

kiteloop


1 Answers

It´s because it is setup in a domain environment and the "Remote Registry"-service was not started. Since my home computer in a workgroup, did not need "Remote Registry" started its the combined which AppFabric cache needs this to make most changes in powershell.

More information at msdn social

like image 106
kiteloop Avatar answered Feb 06 '23 06:02

kiteloop