Problem with large requests in WCF

后端 未结 3 1428
萌比男神i
萌比男神i 2021-01-05 02:20

I\'ve seen this problem posted a million times, but none of the solutions have worked for me...So here I go:

When calling a WCF service I get the following error:

相关标签:
3条回答
  • 2021-01-05 02:38

    I had the same problem whilst trying to upload files using WCF using a named binding configuration. This has to do with the changes in WCF 4.0 and "Simplified" Configuration (see MSDN)

    FYI: I tried everything to solve this problem; the parameter to the service was a byte array, so we removed it and used a stream, tried changing buffered versus streaming mode and obviously the 1.5 million config options to change sizes that never got picked up with a named config.

    Very strange indeed, but working with your suggestion.

    0 讨论(0)
  • 2021-01-05 02:39

    I had a similar issue where the named binding wasn't used by the endpoint. My problem was a typo in the service name. Like Livewire said, WCF 4 Simplified Configuration automatically creates a endpoint and my defined endpoint was not overwriting it.

    0 讨论(0)
  • 2021-01-05 02:52

    Found the solution...But still very strange!

    If I remove the name attribute from my binding tag and the bindingConfiguration attribute from my endpoint tag it all works. This means that the basicHttpBinding configuration is the default configuration for all basicHttpBinding endpoints

    0 讨论(0)
提交回复
热议问题