Problem with large requests in WCF

后端 未结 3 1427
萌比男神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.

提交回复
热议问题