none
Connect failed when use Appfabric cache

    Question

  • http://msdn.microsoft.com/en-us/wazplatformtrainingcourse_buildingappswithcacheservice_topic3, I follow this link to set the example to use the cache as a session provider. And I get this error when running the example.  What's reason for this problme? Could it be due to the oompany firewall?

    A connection attempt failed because the connected party did not properly
    respond after a period of time, or established connection failed because
    connected host has failed to respond 70.37.106.216:443

    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: A connection attempt failed because the
    connected party did not properly respond after a period of time, or established
    connection failed because connected host has failed to respond
    70.37.106.216:443

    Source Error:





    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.


    Stack Trace:





    [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 70.37.106.216:443]
      System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +305
      System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +699
    
    [WebException: Unable to connect to the remote server]
      System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data) +1022
      Microsoft.ApplicationServer.Caching.AcsHelpers.GetToken(String serviceNamespace, String acsHostName, String issuerName, String issuerKey, String appliesTo) +356
    
    [DataCacheException: ErrorCode<ERRCA0030>:SubStatus<ES0001>:Acs Request for Token failed. One of the reasons could be an invalid authorization token.]
      Microsoft.ApplicationServer.Caching.AcsHelpers.GetToken(String serviceNamespace, String acsHostName, String issuerName, String issuerKey, String appliesTo) +1336
      Microsoft.ApplicationServer.Caching.ClientAcsSecurity.get_Token() +186
      Microsoft.ApplicationServer.Caching.TransportUtility.AddAuthenticationHeader(Message message, DataCacheSecurity dataCacheSecurity) +62
      Microsoft.ApplicationServer.Caching.WcfClientChannel.SendMessage(EndpointID endpoint, Message message, TimeSpan timeout, WaitCallback callback, Object state, Boolean async) +192
      Microsoft.ApplicationServer.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message, TimeSpan timeout) +36
      Microsoft.ApplicationServer.Caching.SimpleClient.Send(EndpointID endpoint, RequestBody request) +64
      Microsoft.ApplicationServer.Caching.SimpleClient.SendMsgAndWait(RequestBody reqMsg, IRequestTracker& tracker) +657
      Microsoft.ApplicationServer.Caching.DataCache.SendReceive(RequestBody reqMsg, IMonitoringListener listener) +220
      Microsoft.ApplicationServer.Caching.SimpleClient.GetCacheProperties() +562
      Microsoft.ApplicationServer.Caching.DataCacheFactory.GetCache(String cacheName) +877
      Microsoft.Web.DistributedCache.CacheHelpers.RunCacheCreationHooks(CacheConnectingEventArgs fetchingEventArgs, IDataCacheFactory dataCacheFactory, Object sender, EventHandler`1 fetchingHandler, EventHandler`1 fetchedHandler) +95
      Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateInternalProvider(IHttpRuntime httpRuntime, SessionInitializationData initData, IDataCacheFactory dataCacheFactory, EventHandler`1 cacheFetching, EventHandler`1 cacheFetched) +121
      Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.GetInternalProvider() +206
      Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.CreateNewStoreData(HttpContext context, Int32 timeout) +19
      System.Web.SessionState.SessionStateModule.InitStateStoreItem(Boolean addToContext) +160
      System.Web.SessionState.SessionStateModule.CompleteAcquireState() +363
      System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1296
      System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +115
      System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371
    

    LC
    Thursday, April 21, 2011 10:24 AM

Answers