我已在不同域中的网络服务器上设置了 AppFabric CacheServer。
当我尝试访问它时,出现异常: 服务器已拒绝客户端凭据。 InnerException:登录尝试失败。
我已经尝试过
Grant-CacheAllowedClientAccount Everyone
但是没有用,我已经尝试过了
Grant-CacheAllowedClientAccount MYDOMAIN\MyIISusr
但这只会给我一个错误:Windows 帐户 MYDOMAIN\MyIISusr 无效。 可能是因为我们不在同一个域?
我尝试将应用程序池帐户设置为网络服务并使用
Grant-CacheAllowedClientAccount Networkservice
但这也没有帮助。
有什么方法可以跳过授权而不授权用户吗? 一切都在防火墙后面,公众无法访问,因此此应用程序不需要授权。
或者有人可以解决我的问题吗?
最佳答案
您可以通过以下方式连接到 AppFabric Cache,无需身份验证:
Set-CacheClusterSecurity -SecurityMode None -ProtectionLevel None
像这样配置您的客户端:
<dataCacheClients> <dataCacheClient name="CacheName" maxConnectionsToServer="20"> <hosts> <host name="hostName" cachePort="22233" /> </hosts> <securityProperties mode="None" protectionLevel="None" /> </dataCacheClient> </dataCacheClients>
但我不建议这样做。 您应该能够从一个域连接到另一个域,但配置这应该是您的管理团队的工作。
关于c# - AppFabric 缓存客户端拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12780394/