none
EndpointNotFoundException while calling CRM 2011 Organization Service from BizTalk WCF-WSHttp adapter. RRS feed

  • Question

  • Hi,

    Following error is thrown while calling Organization service from CRM 2011 online instance using WCF-WSHttp adapter. Binding file generate for service is also given below.

    Error:

    A message sent to adapter "WCF-WSHttp" on send port "WcfSendPort_OrganizationService_CustomBinding_IOrganizationService_Custom_1" with URI "https://northlake.crm.dynamics.com/XRMServices/2011/Organization.svc" is suspended.

    Error details: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://northlake.crm.dynamics.com/XRMServices/2011/Organization.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable to connect to the remote server ---> 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 65.55.123.42:443

    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

    --- End of inner exception stack trace ---

    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)

    at System.Net.HttpWebRequest.GetRequestStream()

    at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()

    --- End of inner exception stack trace ---

    Server stack trace:

    at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()

    at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)

    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)

    at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

    at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)

    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)

    at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

    at System.ServiceModel.Channels.CommunicationObject.Open()

    Exception rethrown at [0]:

    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

    at System.ServiceModel.ICommunicationObject.Open()

    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)

    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)

    MessageId: {FD5E497D-3CA2-40FC-A006-6E13D1B4757D}

    InstanceID: {42ED2269-08DF-46EF-8F3D-713B28C57234}

    Binding generated vy svcutil.exe

    <?

     

     

    xml version="1.0" encoding="utf-8"?>

    <

     

     

    configuration><system.serviceModel><bindings><customBinding><binding name="CustomBinding_IOrganizationService"><!<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"messageVersion="Default" writeEncoding="utf-8"><readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /></textMessageEncoding>

    <

     

     

    httpsTransport manualAddressing="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true" requireClientCertificate="false" />

    </

     

     

    binding></customBinding></bindings><client><endpoint address="https://northlake.crm.dynamics.com/XRMServices/2011/Organization.svc"binding="customBinding" bindingConfiguration="CustomBinding_IOrganizationService"contract="IOrganizationService" name="CustomBinding_IOrganizationService" /></client></system.serviceModel></configuration>

    Please suggest how to avoid this error.

    Regards,


    //Dharmendra //Bangalore, India
    Tuesday, January 18, 2011 1:09 PM

Answers

  • I'd suggest that your endpoint address should be https://northlake.crm5.dyanmics.com/XRMServices/2011/Organization.svc

     

    You've got northlake.crm.dynamics instead of northlake.crm5.dynamics

    Friday, May 20, 2011 3:27 AM