Note that there are some explanatory texts on larger screens.

plurals
  1. POError accessing AppFabric Cache
    text
    copied!<p>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. </p> <p>I can access the AppFabric Cache when using the cassini webserver (My local administrator account).</p> <p>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.</p> <p>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. </p> <blockquote> <p>PS C:> Grant-CacheAllowedClientAccount "Everyone"</p> <p>Grant-CacheAllowedClientAccount : Object reference not set to an instance of an object. At line:1 char:32 + Grant-CacheAllowedClientAccount &lt;&lt;&lt;&lt; Everyone + CategoryInfo : NotSpecified: (:) [Grant-CacheAllowedClientAccou nt], NullReferenceException + FullyQualifiedErrorId :<br> System.NullReferenceException,Microsoft.Applicat ionServer.Caching.Commands.GrantCacheAllowedClientAccountCommand</p> </blockquote> <p>I have two almost identical developer machines using win7 x64 (domain connected) where the error is the same on both computers.</p> <p>But at my home computer (which is not domain connected) it works as expected with the same installation settings, same shared directory.</p> <p>What I have done so far:</p> <ul> <li>Reinstalled appfabric cache twice</li> <li>Reconfigured the Cache to use another directory</li> <li>Set configuration directory share, full access to Everyone</li> <li>Security permissions for the directory, full access to Everyone.</li> </ul> <p>Is there a way to go deeper and debug this error message or a solution to fix it?</p> <p><img src="https://i.stack.imgur.com/320SC.jpg" alt="Error from appfabric cache powershell"></p> <blockquote> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core" /&gt; &lt;/configSections&gt; &lt;dataCache size="Small"&gt; &lt;caches&gt; &lt;cache consistency="StrongConsistency" name="default" minSecondaries="0"&gt; &lt;policy&gt; &lt;eviction type="Lru" /&gt; &lt;expiration defaultTTL="10" isExpirable="true" /&gt; &lt;/policy&gt; &lt;/cache&gt; &lt;/caches&gt; &lt;hosts&gt; &lt;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" /&gt; &lt;/hosts&gt; &lt;deploymentSettings&gt; &lt;deploymentMode value="RoutingClient" /&gt; &lt;/deploymentSettings&gt; &lt;/dataCache&gt; &lt;/configuration&gt; </code></pre> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload