WCF Service problem The remote server returned an unexpected response: (400) Bad Request.

Posted by Jpchoudhari under ASP.NET on 2/14/2012 | Points: 10 | Views : 10945 | Status : [Member] | Replies : 1
Hi,

I have written WCF service that accept datatable and do bulk insert to SQL database.
When i am sending around 200 records in datatable from my wpf application it is responding well but when records increases say around 500-600 it gives error like The remote server returned an unexpected response: (400) Bad Request. (Protocol exception was unhandled ).
It seems like there is some limit my WCF service is allowing to accept data... how can i increase this limit?

Kind Regards,
Jay



Responses

Posted by: SASTRYKVS on: 2/14/2012 [Member] Starter | Points: 25

Up
0
Down
The possibility could be the message size is exceeding limits of normal message you may have to increase the message size in the web.config file.I guess you can go through the following link to have a look on increasing the message size.

http://stackoverflow.com/questions/884235/wcf-how-to-increase-message-size-quota

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response