basichttpbinding

What 130 second timeout is killing my WCF streaming service call?

喜欢而已 提交于 2019-11-28 06:31:14
Just recently I started to investigate a tricky problem with WCF streaming in which a CommunicationException is produced if the client waits for any longer than 130 seconds in between sends to the server. Here is the full exception: System.ServiceModel.CommunicationException was unhandled by user code HResult=-2146233087 Message=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 '23:59:59.9110000'. Source=mscorlib StackTrace: Server

Large Binary (byte[]) File transfer through WCF

那年仲夏 提交于 2019-11-28 04:44:11
I am trying to build a WCF service that allows me to send large binary files from clients to the service. However I am only able to successfully transfer files up to 3-4MB. (I fail when I try to transfer 4.91MB and, off course, anything beyond) The Error I get if I try to send the 4.91MB file is: Exception Message: An error occurred while receiving the HTTP response to http://localhost:56198/Service.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

How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?

巧了我就是萌 提交于 2019-11-27 11:09:09
Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) The site is hosted on IIS 7, with the following authentication set up: - Anonymous access: off - Basic authentication: on - Integrated Windows authentication: off !! Service Config: <services> <service name="NameSpace.SomeService"> <host> <baseAddresses> <add baseAddress="https://hostname/SomeService/" /> </baseAddresses> </host> <!-- Service Endpoints --> <endpoint address="" binding="basicHttpBinding" bindingNamespace="http://hostname

The maximum message size quota for incoming messages (65536) has been exceeded

不打扰是莪最后的温柔 提交于 2019-11-27 07:55:54
I get this exception while creating scope for few tables all those tables are huge in design <bindings> <wsHttpBinding> <binding name="wsHttpBinding_ISyncServices" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <reliableSession ordered="true" inactivityTimeout

Why is the first WCF client call slow?

雨燕双飞 提交于 2019-11-26 22:41:47
I am trying to figure out why the first WCF call after client application start takes much more time comparing to second one. What I did to test that: Implemented simple self hosted WCF Server and console client. Server IS warmed up - I run it and call method several times before running test. Binding is basicHttpBinding to reduce network and security overhead. Testing scenario - start console client app, making two identical WCF service calls in a row. In my tests I see ~700 milliseconds for first call and ~3 milliseconds for second call. Almost a second seems to be too much time for JIT

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

大憨熊 提交于 2019-11-26 16:51:41
In WCF there are several different types of HTTP based bindings: BasicHttpBinding WsHttpBinding WebHttpBinding What are the differences among these 3? In particular what are the differences in terms of features / performance and compatability? You're comparing apples to oranges here: webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is quite different from REST. SOAP has the advantage of having WSDL and XSD to describe the service, its

How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?

我只是一个虾纸丫 提交于 2019-11-26 15:27:49
问题 Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) The site is hosted on IIS 7, with the following authentication set up: - Anonymous access: off - Basic authentication: on - Integrated Windows authentication: off !! Service Config: <services> <service name="NameSpace.SomeService"> <host> <baseAddresses> <add baseAddress="https://hostname/SomeService/" /> </baseAddresses> </host> <!--

The maximum message size quota for incoming messages (65536) has been exceeded

一世执手 提交于 2019-11-26 11:04:03
问题 I get this exception while creating scope for few tables all those tables are huge in design <bindings> <wsHttpBinding> <binding name=\"wsHttpBinding_ISyncServices\" closeTimeout=\"00:10:00\" openTimeout=\"00:10:00\" receiveTimeout=\"00:10:00\" sendTimeout=\"00:10:00\" transactionFlow=\"false\" hostNameComparisonMode=\"StrongWildcard\" maxBufferPoolSize=\"2147483647\" maxReceivedMessageSize=\"2147483647\"> <readerQuotas maxDepth=\"32\" maxStringContentLength=\"2147483647\" maxArrayLength=\

Why is the first WCF client call slow?

浪子不回头ぞ 提交于 2019-11-26 08:25:04
问题 I am trying to figure out why the first WCF call after client application start takes much more time comparing to second one. What I did to test that: Implemented simple self hosted WCF Server and console client. Server IS warmed up - I run it and call method several times before running test. Binding is basicHttpBinding to reduce network and security overhead. Testing scenario - start console client app, making two identical WCF service calls in a row. In my tests I see ~700 milliseconds for