If you include these snippets into your service config: system. Diagnostics> ServiceModel This will create a file ServiceTrace. Svclog in the directory you chose.
Use the WCF Service Trace Viewer (found in your c:\program files\Microsoft SDKs\Windows\v6.0A\bin directory) to analyze the file - it will show you the exact contents of the messages, and also include the "content-length" for the message, so you'll see exactly how big the message is Marc.
If you include these snippets into your service config: This will create a file ServiceTrace. Svclog in the directory you chose. Use the WCF Service Trace Viewer (found in your c:\program files\Microsoft SDKs\Windows\v6.0A\bin\ directory) to analyze the file - it will show you the exact contents of the messages, and also include the "content-length" for the message, so you'll see exactly how big the message is.
Marc.
2 Where can I find the "content-length" information, I have the Microsoft Service Trace Viewer open and don't see it... – manu08 Nov 9 '09 at 23:45 I can't see content-length either in service trace viewer – stackoverflowuser Jan 18 at 20:05 Note: the viewer is "SvcTraceViewer. Exe" – Michael Paulukonis Sep 14 at 13:37.
You could use the Data Contract Serializer to serialize the message to a MemoryStream, then check to see how many bytes that amounts to.
I'm getting the following error from my WCF service which is returning the results of a query in C# objects. I know how to resolve this via MaxReceivedMessageSize What I'm looking to find out is how do I find out what contributes to the message size. It dosn't look to me like it can be purely data e.g. If I add 5Kb of data to the amount of data I am pulling back from my service.
I need to increase MaxReceivedMessageSize by more than 5KB in order to resolve the error. I'm also wondering about any tools to look at the message size in the debugger. And finally how to trim/optimise the message size!
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.