我试图使用MVC asp.net项目使用IIS7运行Appfabric Cache.在共享目录中使用XML配置提供程序.
我可以在使用cassini webserver(我的本地管理员帐户)时访问AppFabric Cache.
使用IIS("ApplicationPoolIdentity")时,我无法使其工作,并且我收到无法连接到主机的标准消息.
我试图向不同的用户(APPPOOL \name,NETWORKservice,Everyone等)授予对缓存的访问权限,但每次都得到这个null异常.
PS C:> Grant-CacheAllowedClientAccount"Everyone"
Grant-CacheAllowedClientAccount:未将对象引用设置为对象的实例.在行:1 char:32 + Grant-CacheAllowedClientAccount <<<< Everyone + CategoryInfo:NotSpecified:(:) [Grant-CacheAllowedClientAccou nt],NullReferenceException + FullyQualifiedErrorId:
System.NullReferenceException,Microsoft.Applicat ionServer.Caching.Commands.GrantCacheAllowedClientAccountCommand
我有两个几乎相同的开发者机器使用win7 x64(域连接),其中两台计算机上的错误是相同的.
但是在我的家用计算机(不是域连接)上,它按预期使用相同的安装设置,相同的共享目录.
到目前为止我做了什么:
有没有办法更深入地调试此错误消息或解决方案来修复它?

Run Code Online (Sandbox Code Playgroud)<?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>
kit*_*oop 10
这是因为它是在域环境中设置的,并且"远程注册表"服务未启动.由于我的家用计算机在一个工作组中,不需要"远程注册表"启动它的组合,哪个AppFabric缓存需要这个来在powershell中进行大多数更改.
| 归档时间: |
|
| 查看次数: |
6453 次 |
| 最近记录: |