Can you turn on logging? If you include these fragments in the service configuration:
<system.diagnostics> <sources> <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing" > <listeners> <add name="xmlTrace" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\Traces\ServiceTrace.svclog" /> </listeners> </source> </sources> <trace autoflush="true" /> </system.diagnostics> <system.serviceModel> <diagnostics> <messageLogging logMessagesAtTransportLevel="true" logMessagesAtServiceLevel="false" logMalformedMessages="true" logEntireMessage="true" maxSizeOfMessageToLog="65535000" maxMessagesToLog="500" /> </diagnostics> </system.serviceModel>
This will create the ServiceTrace.svclog file in the directory of your choice. Use the WCF trace viewer (found in your directory c:\program files\Microsoft SDKs\Windows\v6.0A\bin\ ) to analyze the file - it will show you the exact contents of the messages and also include the "length of the content" for the message, so that you will see exactly how big the message is.
marc_s
source share