Pages

Sunday, December 1, 2013

Analyze the Request Response message Content Length using the WCF Trace Viewer

My project is consuming a WCF service, and received an error - 

Error: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element

I cannot blindly increase the message size to some random manner, so I fetched the general response length and then increased to an apprpriate number which is more than the actual length.

Today, I will explain you how to get the Request and Response message's content length passed/retrieved to/from the WCF service.

Before that learn how to log the WCF request/response data: 
Log-requestresponse-xml-in-wcf-service

Steps to analyze the Response content length of the service method:

  • Open the Developer Command for VS2012.
  • Type the command - SvcTraceViewer.exe
  • This opens the Microsoft TraceViewer tool.
  • Click File --> Open.


  • Select the WCF log (in SVCLOG file format), which you are intended to check the Response length. The complete message is opened in the Formatted manner.




No comments:

Post a Comment