我试图让我的本地开发环境中运行AppFabric缓存。我有安装了Windows Server AppFabric Beta 2 Refresh,并且配置了缓存群集和主机,并开始在Windows 7 64位上运行。我在集成模式下的v4.0应用程序池下在本地IIS网站上运行我的MVC2网站。AppFabric缓存 - 现有连接被远程主机强制关闭
HostName : CachePort Service Name Service Status Version Info
-------------------- ------------ -------------- ------------
SN-3TQHQL1:22233 AppFabricCachingService UP 1 [1,1][1,1]
我已经配置了以下我的web.config:
<configSections>
<section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowLocation="true" allowDefinition="Everywhere"/>
</configSections>
<dataCacheClient>
<hosts>
<host name="SN-3TQHQL1" cachePort="22233" />
</hosts>
</dataCacheClient>
我得到一个错误,当我尝试初始化DataCacheFactory:
protected CacheService()
{
_cacheFactory = new DataCacheFactory(); <-- Error here
_defaultCache = _cacheFactory.GetDefaultCache();
}
我越来越带有以下内容的ASP.NET黄色错误屏幕:
an exi sting连接被远程主机强制关闭
说明:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关该错误的更多信息以及源代码的位置。
异常详细信息:System.Net.Sockets.SocketException:一个现有的连接被强行关闭远程主机
源错误:
Line 21: protected CacheService()
Line 22: {
Line 23: _cacheFactory = new DataCacheFactory();
Line 24: _defaultCache = _cacheFactory.GetDefaultCache();
Line 25: }
,真正的问题是,如果您的帐户没有访问权限,你为什么不服务器告诉你,插件“一个现有的连接被远程主机强行关闭” – felickz 2013-07-01 14:53:06