English 中文(简体)
AppFabric Cache - 遥远的东道国强行关闭了现有的连接线。
原标题:AppFabric Cache - An existing connection was forcibly closed by the remote host

我试图从我的地方发展环境中获得和运行的“助老会”。 我安装了 服务器ATFabric Beta 2 Refresh,并安装了Cache集群和东道方组合,并开始使用Windows 7 64-bit。 我在综合模式下,用千兆克的仪表库,在一个当地国际数据系统网站上管理我的MVC2网站。

HostName : CachePort      Service Name            Service Status Version Info
--------------------      ------------            -------------- ------------
SN-3TQHQL1:22233          AppFabricCachingService UP             1 [1,1][1,1]

我有我的网络。

  <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>

当我试图初步确定数据CacheFactory时,我错了:

    protected CacheService()
    {
        _cacheFactory = new DataCacheFactory(); <-- Error here
        _defaultCache = _cacheFactory.GetDefaultCache();
    }

I m 带走伙伴关系。 NET黄色错误筛选如下:

www.un.org/Depts/DGACM/index_spanish.htm 遥远的东道国强行关闭了现有的连接线。

说明: 在执行目前的网络要求期间,出现了一个未经处理的例外。 请审查有关该错误及其源自该守则的更多信息。

例外细节: 系统.Net.Sockets.SocketException: 遥远的东道国强行关闭了现有的连接线。

资料来源:

Line 21:         protected CacheService()
Line 22:         {
Line 23:             _cacheFactory = new DataCacheFactory();
Line 24:             _defaultCache = _cacheFactory.GetDefaultCache();
Line 25:         }
最佳回答

我也有一个类似的问题,我的问题是,我没有向海滩客户提供适当的许可。 为了迅速核实这一问题,我将允许每个账户进入海滩。 如果这个问题有所固定,那么就将研究限制获得适当账户的机会,而不是限制所有人。 可以通过Windows服务器 AppFabric的“Caching ManagerWindows PowerShell”执行以下指挥:

Grant-CacheAllowedClientAccount everyone
问题回答

如果你使用数据CacheFactoryConfiguration制物体,你是否会遇到同样的问题? e.g.

protected CacheService()
{
    DataCacheFactoryConfiguration config;
    List<DataCacheServerEndpoint> endpoints;
    DataCacheFactory factory;
    DataCache cache;

    endpoints = new List<DataCacheServerEndpoint>();
    endpoints.Add(new DataCacheServerEndpoint("SN-3TQHQL1",22233));

    config = new DataCacheFactoryConfiguration();
    config.Servers = endpoints;

    factory = new DataCacheFactory(config);

    cache = factory.GetDefaultCache();
    ...
}

你是否在你的防火墙上打开了港口?

也许可以检查你在事件记录中的条目——它们可以提供(或)发生的事情的lu。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签