Senthil
Senthil

Reputation:

Wcf service Error

When i am trying send large size files through wcf service, its give Unexpected sercice response, bad request 400 error. if i send bellow 16000 bytes size files does not give error. how do i increase the size, and help me to resolve the issue. Thanks to all. by Senthil

Upvotes: 0

Views: 209

Answers (2)

Ray Lu
Ray Lu

Reputation: 26658

In your binding on the server for the service endpoint, find your transport binding element and increase the value for the following two attributes.

maxReceivedMessageSize="999999" 
maxBufferSize="999999"

Upvotes: 1

Related Questions