Questions tagged [wcf-binding]

The configuration of encoding, protocol and transport detailing how WCF services and clients communicate with each other. This tag is for both the default system-provided bindings, and custom bindings.

A WCF binding is a combination of encoding, protocol, and transport details used by WCF web services and clients to communicate with eachother. It determines the wire representation of messages exchanged by services and clients.

WCF offers default system-provided bindings for typical combinations, e.g. for typical http or https connections. You can also create custom bindings for your application, detailing non-default options for encoding, transport, and protocol.

References

1642 questions
36
votes
4 answers

Maximum array length quota

I'm writing a small WCF/WPF app to resize images but WCF is giving me grief when I try to send an image of size 28K to my service from the client. The service works fine when I send it smaller images. I immediately assumed that this was a…
Dav Evans
  • 4,031
  • 7
  • 41
  • 60
36
votes
3 answers

WCF service maxReceivedMessageSize basicHttpBinding issue

I can't seem to get my WCF service to accept large amounts of data being sent up to it. I configured the maxReceivedMessageSize for the client and could receive large data down just fine, that's not the issue. It's sending data up to the service.…
BlargleMonster
  • 1,602
  • 2
  • 18
  • 33
35
votes
4 answers

System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http::8080

I have created my first self-hosted WCF service. I hosted it in a C# console app but it throws an error: System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http: 8080 When I run Visual Studio 2013 as administrator, then…
user3432348
  • 353
  • 1
  • 5
  • 9
32
votes
4 answers

How can I combine the WCF services config for both http and https in one web.config?

I spent a lot of time figuring out how to configure my WCF services so that they would work for https in the production environment. Basically, I needed to do this:
sohtimsso1970
  • 3,216
  • 4
  • 28
  • 38
29
votes
4 answers

Deploying WCF Service with both http and https bindings/endpoints

I've written a WCF web service for consumption by a Silverlight app. Initially, the service only required a basic http binding. We now need to be able to deploy the service for use under both http and https. I've found some settings for…
Zann Anderson
  • 4,767
  • 9
  • 35
  • 56
29
votes
7 answers

Setting up WCF TCP service in a web application

I've been battling with this for days, literally going through a hundred articles giving partial guidelines on how to set up a WCF TCP based service in a web application. If someone can help me, I will make this question into a complete…
Niels Brinch
  • 3,033
  • 9
  • 48
  • 75
28
votes
8 answers

An error occurred when verifying security for the message

When I try to call a WCF service I am getting the following message "An error occurred when verifying security for the message." When I remove the custom authenication the service works no problem. I can't figure out though what I have misconfigured…
Matt Klepeis
  • 1,724
  • 1
  • 14
  • 25
28
votes
6 answers

maxReceivedMessageSize not fixing 413: Request Entity Too Large

My call to my WCF web service is failing with System.Net.WebException: The request failed with HTTP status 413: Request Entity Too Large. Checking Fiddler, I see that I'm sending: Content-Length: 149839 Which is over 65KB. Enabling WCF tracing on…
TrueWill
  • 25,132
  • 10
  • 101
  • 150
27
votes
2 answers

WCF service The maximum array length quota (16384) has been exceeded

I have a wsf service and a client application. While trying to communicate the client and the service I've gotten the following message: "The formatter threw an exception while trying to deserialize the message: There was an error while trying to…
Dmitry Baranovsky
  • 731
  • 1
  • 6
  • 8
25
votes
3 answers

How to get the IP address of a WCF remote endpoint?

Is there a way to get the remote IP Address of a WCF connection? I guess the reason why it's not built-in into the WCF framework is that WCF can work with non TCP/IP bindings, so the IP Address is not always meaningful. However, the information…
Brann
  • 31,689
  • 32
  • 113
  • 162
24
votes
2 answers

Mutual SSL authentication with WCF: no CertificateRequest and CertificateVerify in handshake phase

I'm working on a WCF service that is to be consumed by a client that is not developed by me and also it's not .NET (possibly Java). In any case, the service should support mutual SSL authentication, where both the service and the client authenticate…
Marcel N.
  • 13,726
  • 5
  • 47
  • 72
22
votes
1 answer

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

Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only the BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) The site is hosted on IIS 7, with the following authentication set up: Anonymous…
Tim
  • 939
  • 1
  • 7
  • 13
21
votes
3 answers

Transfer large amount of data in WCF service

I have created a web service in WCF which returns more than 54000 data-rows with 10 data in each row. I have used the wsHttpBinding for communication. The service works well with less data (i.e. 2000 rows) but it bombs out when attempting to send…
Rizvi Hasan
  • 703
  • 1
  • 5
  • 19
21
votes
3 answers

How can I programmatically create this custom binding?

We've got to access a web service that uses soap11... no problem I'll just set the binding as: BasicHttpBinding wsBinding = new BasicHttpBinding(BasicHttpSecurityMode.TransportWithMessageCredential); Nope. No dice. So I asked the host of the…
D.Forrest
  • 845
  • 1
  • 9
  • 23
20
votes
4 answers

bindingConfiguration vs bindingName

What exactly is the difference between bindingConfiguration and bindingName elements in a WCF endpoint element? The reason that I ask is I am creating an endpoint which uses basicHttpBinding and SSL. I configured the web.config like…
devlife
  • 15,275
  • 27
  • 77
  • 131