Membru cu cele mai relevante răspunsuri
I am running the CacheSampleWebApp downloaded from Microsoft. I have a cache cluster created across two server. When trying to access CacheSampleWebApp/GetOrder.aspx, I got the following error:
An existing connection was forcibly closed by the remote host
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[SocketException (0x2746): An existing connection was forcibly closed by the remote host] [CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:10:00'.] System.Runtime.AsyncResult.End(IAsyncResult result) +900320 System.ServiceModel.Channels.CommunicationObject.EndOpen(IAsyncResult result) +17 Microsoft.ApplicationServer.Caching.ChannelContainer.Opened(IAsyncResult ar) +115 [DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Retry later.)] Microsoft.ApplicationServer.Caching.ClientDRM.InitializeCasClient(String id, TimeSpan chnlOpenTimeout) +354 Microsoft.ApplicationServer.Caching.DataCacheFactory.InitDrm() +252 Microsoft.ApplicationServer.Caching.DataCacheFactory..ctor(DataCacheFactoryConfiguration configuration) +399 CacheUtil.GetCache() in C:\Users\wongjack\Desktop\WindowsServerAppFabricSamples\Samples\CS\Cache\CacheSampleWebApp\CacheSampleWebApp\CacheUtil.cs:42 Default2.Page_Load(Object sender, EventArgs e) in C:\Users\wongjack\Desktop\WindowsServerAppFabricSamples\Samples\CS\Cache\CacheSampleWebApp\CacheSampleWebApp\GetOrder.aspx.cs:11 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
I have added the following on the IIS server but there is C:\log\Trace.svclog.
<configuration> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\log\Traces.svclog" /> </listeners> </source> </sources> </system.diagnostics> </configuration>
Can someone please advise? Thanks.