I get this:
An error occurred while receiving the HTTP response to http://localhost:8732/Design_Time_Addresses/PersistencyService/Service1/. 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.
Why do I get this? I assume it is because the method takes about 1 min to complete. How can disable any time limit?
I get this when running in VS a Windows form project that uses a WCF service in the same solution
My WCF configuration: edit:
<system.serviceModel> <bindings> <wsHttpBinding> <binding name="LongRunning" sendTimeout="00:10:00" /> </wsHttpBinding> </bindings> <client> <endpoint name="Default" address="http://localhost:8732/Design_Time_Addresses/PersistencyService/Service1/" binding="wsHttpBinding" bindingConfiguration="LongRunning" contract="PersistencyService.IService1" /> </client> <services> <service name="PersistencyService.Service1"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="" contract="PersistencyService.IService1" > <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://localhost:8732/Design_Time_Addresses/PersistencyService/Service1/" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> The exception message is An existing connection was forcibly closed by the remote host. I must also add that I get about 70MB of data from the service