3
Answers

Service endpoint binding not using the HTTP protocol

Matt

Matt

13y
43k
1

I have a WCF Service running fine on my local machine. I put it on the servers, and I am receiving the following error:

An error occurred while receiving the HTTP response to http://xx.xx.x.xx:8200/Services/WCFClient.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.]

I have gone to the service in the url and it is working correctly. All I am doing for the function is returning a string to an image name, so the data being passed isn't a lot. I have traced the log and it gives me the same information. Here is my client config:

<binding name="basicHttpBinding_IWCFClient" closeTimeout="00:01:00"
         openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
         bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
         maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
         messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
         allowCookies="false">
    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                  maxArrayLength="2147483647" maxBytesPerRead="2147483647"
                  maxNameTableCharCount="2147483647" />
    <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
    </security>
</binding>
<endpoint name="basicHttpBinding_IWCFClient"
    address="http://localhost:4295/Services/WCFClient.svc"
    binding="basicHttpBinding"
    bindingConfiguration="basicHttpBinding_IWCFClient"
    behaviorConfiguration="WCFGraphicManagementTool.Services.ClientBehavior"
    contract="WCFClient.IWCFClient" />
Markup

Here is my server config:

<service behaviorConfiguration="WCFGraphicManagementTool.Services.WCFClientBehavior"
    name="WCFGraphicManagementTool.Services.WCFClient">
   <endpoint name="basicHttpBinding_IWCFClient"
       address=""
       binding="basicHttpBinding"
       contract="WCFGraphicManagementTool.Contracts.IWCFClient" />
   <endpoint
       address="mex"
       binding="mexHttpBinding"
       contract="IMetadataExchange" />
</service>
<behavior name="WCFGraphicManagementTool.Services.WCFClientBehavior">
   <dataContractSerializer maxItemsInObjectGraph="2147483647" />
   <serviceThrottling maxConcurrentCalls="120" maxConcurrentSessions="120"
                      maxConcurrentInstances="120" />
   <serviceMetadata httpGetEnabled="true" />
   <serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
Markup

Would it be a setting on the server since it works on my local machine?

Answers (3)
3
Suthish Nair

Suthish Nair

NA 30.5k 7.2m 13y

 refer this discussion, might helps or wait for more replies..

  
3
Matt

Matt

NA 3 43k 13y
It is on the server with the server's IP address. I just copied this from my local machine. The files on the server and the local machine are the same except for the IP address.
3
Suthish Nair

Suthish Nair

NA 30.5k 7.2m 13y

 try change localhost to server ip address..

  address="http://1.1.1.1(server ip address)/Services/WCFClient.svc"

Next Recommended Forum