Marko
Marko

Reputation: 11002

What's the max limit for messages in WCF?

I've tried to inserting bigger images through a WCF-service and I ain't successful. It complains the sending message is too big. I've sent smaller images which went fine, but the bigger images I have more trouble with. I've tried (without success) altering in the web.config:

<bindings>
      <basicHttpBinding>
        <!-- binding configuration with a name -->
        <binding name="ExtendedMaxSize" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647000000" />
      </basicHttpBinding>
    </bindings>

The remote server returned an unexpected response: (413) Request Entity Too Large.

Maybe it ain't possible to send so big images through wcf? I don't really know so therefore I'm asking.

Upvotes: 1

Views: 2634

Answers (1)

BluesRockAddict
BluesRockAddict

Reputation: 15683

Here is MSDN article that might be useful for you: WFC Large Data and Streaming.

Also, if you're using IIS 6, you might be experiencing this issue.

Upvotes: 2

Related Questions