dcm22

Does anyone have a working sample of a WCF service that uses callbacks (publish-subscribe), FaultContracts, and can SUCCESSFULLY throw exceptions from the service back to the client.

Thanks




Re: Windows Communication Foundation (Indigo) WCF Callbacks

WillRogers

I don't have a working sample up and running, but from what I understand the only thing weird with dealing with faults in a duplex service has to do with faults occurring during the callback to the client. There can be reentrancy issues with the service in that case.
What sort of problems are you having




Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

I am unable to throw an error back from the service. I hit the catch but the error

is never thrown back to my client. Instead when I step through my code I get the following error:

FaultException was unhandled by user code.

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






Re: Windows Communication Foundation (Indigo) WCF Callbacks

Scott Seely

Please make sure that your OperationContract is propely decorated with the [FaultContract] attribute so that WCF knows what faults are being returned to the sender. Example:

Code Block

[ServiceContract]

interface IDoWork

{

[FaultContract(typeof(string))]

[OperationContract]

void DoWork();

}

public class DoWorkService : IDoWork

{

public void DoWork()

{

if (someCondition)

{

throw new FaultException<string>("Bad thing happened");

}

}

}






Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

Already have the OperationContract decorated as shown above and the throw exactly as you have it. There has to be something else that needs to be set that I'm not doing.






Re: Windows Communication Foundation (Indigo) WCF Callbacks

Scott Seely

If this is true, let's figure out why the fault doesn't seem to get to the client. Can you setup tracing on both sides and see where the fault gets swallowed I'm very curious to find out if a SOAP Fault is sent from Receiver-->Sender.

tracing instructions are here: http://blogs.catalystss.com/blogs/scott_seely/archive/2007/09/28/205.aspx.






Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

Client Trace


at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded()
at System.ServiceModel.Channels.HttpInput.GetMessageBuffer()
at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp;amp; requestException)
at System.ServiceModel.Channels.HttpRequestContext.CreateMessage()
at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback)
at System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContextCore(IAsyncResult result)
at System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContext(IAsyncResult result)
at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

</StackTrace><ExceptionString>System.ServiceModel.ProtocolException: 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.</ExceptionString><DataItems><Data><Key>System.ServiceModel.Channels.HttpInput.HttpStatusCode</Key><Value>BadRequest</Value></Data></DataItems></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Transfer">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:42:56.6631707Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{71f57a4a-2fcf-4b54-b03d-a04a68ab9cad}" RelatedActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Stop">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:42:56.6631707Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{71f57a4a-2fcf-4b54-b03d-a04a68ab9cad}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Processing message 14.</ActivityName><ActivityType>ProcessMessage</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Resume">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:42:56.6631707Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Resume"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Receive bytes on connection 'http://cork2.driehaus.com:8000/c77b790d-2186-4a8a-9ac7-a0013aed1eb1'.</ActivityName><ActivityType>ReceiveBytes</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>262163</EventID><Type>3</Type><SubType Name="Information">0</SubType><Level>8</Level><TimeCreated SystemTime="2007-10-18T15:42:56.6631707Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.MessageSent.aspx</TraceIdentifier><Description>Sent a message over a channel.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><Source>System.ServiceModel.Channels.HttpOutput+ListenerResponseHttpOutput/672884</Source><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTraceRecord"><MessageProperties><AllowOutputBatching>False</AllowOutputBatching></MessageProperties><MessageHeaders></MessageHeaders></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>524304</EventID><Type>3</Type><SubType Name="Verbose">0</SubType><Level>16</Level><TimeCreated SystemTime="2007-10-18T15:42:56.6787663Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Verbose"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.MessageClosed.aspx</TraceIdentifier><Description>A message was closed</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><Source>System.ServiceModel.Channels.NullMessage/38354393</Source></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131076</EventID><Type>3</Type><SubType Name="Information">0</SubType><Level>8</Level><TimeCreated SystemTime="2007-10-18T15:42:56.7723399Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><Exception><ExceptionType>System.ServiceModel.ProtocolException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>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.</Message><StackTrace> at System.ServiceModel.Channels.HttpInput.ThrowHttpProtocolException(String message, HttpStatusCode statusCode, String statusDescription)
at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded()
at System.ServiceModel.Channels.HttpInput.GetMessageBuffer()
at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp;amp; requestException)
at System.ServiceModel.Channels.HttpRequestContext.CreateMessage()
at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback)</StackTrace><ExceptionString>System.ServiceModel.ProtocolException: 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.
at System.ServiceModel.Channels.HttpInput.ThrowHttpProtocolException(String message, HttpStatusCode statusCode, String statusDescription)
at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded()
at System.ServiceModel.Channels.HttpInput.GetMessageBuffer()
at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp;amp; requestException)
at System.ServiceModel.Channels.HttpRequestContext.CreateMessage()
at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback)</ExceptionString></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Stop">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:42:56.7723399Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-4f00-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Receive bytes on connection 'http://cork2.driehaus.com:8000/c77b790d-2186-4a8a-9ac7-a0013aed1eb1'.</ActivityName><ActivityType>ReceiveBytes</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Transfer">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{ec868ce5-71f5-4a31-92ea-7c60d78b91b3}" RelatedActivityID="{00000000-0000-0000-5000-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Start">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-5000-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Receive bytes on connection 'http://cork2.driehaus.com:8000/c77b790d-2186-4a8a-9ac7-a0013aed1eb1'.</ActivityName><ActivityType>ReceiveBytes</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>262167</EventID><Type>3</Type><SubType Name="Information">0</SubType><Level>8</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-5000-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.ConnectToIPEndpoint.aspx</TraceIdentifier><Description>Connection information.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><Source>System.ServiceModel.Channels.SharedHttpTransportManager/50119998</Source><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><LocalEndpoint>172.20.10.96:8000</LocalEndpoint><RemoteEndpoint>172.20.10.96:1694</RemoteEndpoint></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Transfer">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-5000-0060000000fd}" RelatedActivityID="{091535ce-bca9-473e-8161-b1a6822059fc}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Suspend">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-5000-0060000000fd}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Suspend"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Receive bytes on connection 'http://cork2.driehaus.com:8000/c77b790d-2186-4a8a-9ac7-a0013aed1eb1'.</ActivityName><ActivityType>ReceiveBytes</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131085</EventID><Type>3</Type><SubType Name="Start">0</SubType><Level>255</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{091535ce-bca9-473e-8161-b1a6822059fc}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Processing message 15.</ActivityName><ActivityType>ProcessMessage</ActivityType></ExtendedData></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2007-10-18T15:43:01.6225715Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{091535ce-bca9-473e-8161-b1a6822059fc}" /><Execution ProcessName="SymbolPriceApplication.vshost" ProcessID="3084" ThreadID="13" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>SymbolPriceApplication.vshost.exe</AppDomain><Exception><ExceptionType>System.ServiceModel.ProtocolException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>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.</Message><StackTrace> at System.ServiceModel.Channels.HttpInput.ThrowHttpProtocolException(String message, HttpStatusCode statusCode, String statusDescription)
at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded()
at System.ServiceModel.Channels.HttpInput.GetMessageBuffer()
at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp;amp; requestException)
at System.ServiceModel.Channels.HttpRequestContext.CreateMessage()
at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback)
at System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContextCore(IAsyncResult result)
at System.ServiceModel.Channels.SharedHttpTransportManager.OnGetContext(IAsyncResult result)
at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)






Re: Windows Communication Foundation (Indigo) WCF Callbacks

David So - MSFT

The key error from that trace is:

System.ServiceModel.ProtocolException: 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

Seems that the faultexception/error that is being passed back to the client is so big that it's getting rejected.

Can you try increasing the MaxReceivedMessageSize property as mentioned





Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

I am purposely creating that error in order to test throwing an error back to the client. The issue I'm having is that I am unable to get any errors thrown from the service back to the client. From a UI perspective the client hangs, the service

which is a singleton continues to service other clients just fine.






Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

Service Trace

at System.ServiceModel.UpnEndpointIdentity.GetUpnFromWindowsIdentity(WindowsIdentity windowsIdentity)
at System.ServiceModel.UpnEndpointIdentity.EnsureIdentityClaim()
at System.ServiceModel.UpnEndpointIdentity.WriteContentsTo(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointIdentity.WriteTo(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointAddress.WriteContentsTo10(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointAddress.WriteContentsTo(AddressingVersion addressingVersion, XmlDictionaryWriter writer)
at System.ServiceModel.Channels.ReplyToHeader.OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
at System.ServiceModel.Channels.MessageHeader.WriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
at System.ServiceModel.Channels.MessageHeaders.WriteHeaderContents(Int32 headerIndex, XmlDictionaryWriter writer)
at System.ServiceModel.Diagnostics.MessageTraceRecord.WriteTo(XmlWriter xml)
at System.ServiceModel.Diagnostics.DiagnosticTrace.BuildTrace(PlainXmlWriter xml, TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source)
at System.ServiceModel.Diagnostics.DiagnosticTrace.BuildTrace(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source, TraceXPathNavigator&amp;amp; navigator)
at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source)
at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Guid activityId, Object source)
at System.ServiceModel.Diagnostics.TraceUtility.TraceEvent(TraceEventType severity, TraceCode traceCode, Object source, Message message)
at System.ServiceModel.Channels.Message.CreateBufferedCopy(Int32 maxBufferSize)
at System.ServiceModel.Channels.TransmissionStrategy.SlidingWindow.TransmissionInfo..ctor(Message message, Int64 lastAttemptTime, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.SlidingWindow.Add(Message message, Int64 addTime, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.AddToWindow(Message message, Boolean isLast, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.InternalAdd(Message message, Boolean isLast, TimeSpan timeout, Object state, MessageAttemptInfo&amp;amp; attemptInfo)
at System.ServiceModel.Channels.TransmissionStrategy.Add(Message message, TimeSpan timeout, Object state, MessageAttemptInfo&amp;amp; attemptInfo)
at System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(Message message, TimeSpan timeout, Object state, Boolean isLast)
at System.ServiceModel.Channels.ReliableOutputConnection.AddMessage(Message message, TimeSpan timeout, Object state)
at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
at SymbolPriceService.ISymbolServiceEvents.SymbolServiceAsyncReturnSymbolsInternalCallBack(DataTable dt)
at SymbolPriceService.SymbolPriceServiceAsync.RefreshSymbolsInternal(Object sender, EventArgs e)
at System.Timers.Timer.MyTimerCallback(Object state)
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
</StackTrace><ExceptionString>System.ComponentModel.Win32Exception: Access is denied</ExceptionString><NativeErrorCode>5</NativeErrorCode></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131076</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2007-10-18T15:42:46.8535383Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="aspnet_wp" ProcessID="3972" ThreadID="8" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>/LM/W3SVC/1/Root/SymbolPriceServiceHost-1-128371957521936743</AppDomain><Exception><ExceptionType>System.ComponentModel.Win32Exception, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Access is denied</Message><StackTrace> at System.ServiceModel.UpnEndpointIdentity.GetUpnFromDownlevelName(String downlevelName)
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromWindowsIdentity(WindowsIdentity windowsIdentity)</StackTrace><ExceptionString>System.ComponentModel.Win32Exception: Access is denied
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromDownlevelName(String downlevelName)

</StackTrace><ExceptionString>System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (400) Bad Request. ---&amp;gt; System.Net.WebException: The remote server returned an error: (400) Bad Request.

at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

--- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.WebException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The remote server returned an error: (400) Bad Request.</Message><StackTrace> at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)</StackTrace><ExceptionString>System.Net.WebException: The remote server returned an error: (400) Bad Request.

at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)</ExceptionString></InnerException></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2007-10-18T15:42:56.7411487Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="aspnet_wp" ProcessID="3972" ThreadID="8" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>/LM/W3SVC/1/Root/SymbolPriceServiceHost-1-128371957521936743</AppDomain><Exception><ExceptionType>System.ServiceModel.ProtocolException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The remote server returned an unexpected response: (400) Bad Request.</Message><StackTrace> at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException)

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.RequestOneWayChannelFactory.RequestOutputChannel.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.OutputChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.InternalDuplexChannelListener.ServerCompositeDuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannelDemuxer.DuplexChannelWrapper.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServerReliableChannelBinder`1.DuplexServerReliableChannelBinder`1.OnSend(TDuplexChannel channel, Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout, MaskingMode maskingMode)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Security.SecuritySessionServerSettings.ServerSecurityDuplexSessionChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServerReliableChannelBinder`1.DuplexServerReliableChannelBinder`1.OnSend(TDuplexChannel channel, Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout, MaskingMode maskingMode)

at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, Boolean maskUnhandledException)

at System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(Message message, TimeSpan timeout, Object state, Boolean isLast)

at System.ServiceModel.Channels.ReliableOutputConnection.AddMessage(Message message, TimeSpan timeout, Object state)

at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)

at SymbolPriceService.ISymbolServiceEvents.SymbolServiceAsyncReturnSymbolsInternalCallBack(DataTable dt)

at SymbolPriceService.SymbolPriceServiceAsync.RefreshSymbolsInternal(Object sender, EventArgs e)

at System.Timers.Timer.MyTimerCallback(Object state)

at System.Threading._TimerCallback.TimerCallback_Context(Object state)

at System.Threading.ExecutionContext.runTryCode(Object userData)

at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading._TimerCallback.PerformTimerCallback(Object state)






Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

Service Trace

at System.ServiceModel.UpnEndpointIdentity.GetUpnFromWindowsIdentity(WindowsIdentity windowsIdentity)
at System.ServiceModel.UpnEndpointIdentity.EnsureIdentityClaim()
at System.ServiceModel.UpnEndpointIdentity.WriteContentsTo(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointIdentity.WriteTo(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointAddress.WriteContentsTo10(XmlDictionaryWriter writer)
at System.ServiceModel.EndpointAddress.WriteContentsTo(AddressingVersion addressingVersion, XmlDictionaryWriter writer)
at System.ServiceModel.Channels.ReplyToHeader.OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
at System.ServiceModel.Channels.MessageHeader.WriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
at System.ServiceModel.Channels.MessageHeaders.WriteHeaderContents(Int32 headerIndex, XmlDictionaryWriter writer)
at System.ServiceModel.Diagnostics.MessageTraceRecord.WriteTo(XmlWriter xml)
at System.ServiceModel.Diagnostics.DiagnosticTrace.BuildTrace(PlainXmlWriter xml, TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source)
at System.ServiceModel.Diagnostics.DiagnosticTrace.BuildTrace(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source, TraceXPathNavigator&amp;amp; navigator)
at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source)
at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Guid activityId, Object source)
at System.ServiceModel.Diagnostics.TraceUtility.TraceEvent(TraceEventType severity, TraceCode traceCode, Object source, Message message)
at System.ServiceModel.Channels.Message.CreateBufferedCopy(Int32 maxBufferSize)
at System.ServiceModel.Channels.TransmissionStrategy.SlidingWindow.TransmissionInfo..ctor(Message message, Int64 lastAttemptTime, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.SlidingWindow.Add(Message message, Int64 addTime, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.AddToWindow(Message message, Boolean isLast, Object state)
at System.ServiceModel.Channels.TransmissionStrategy.InternalAdd(Message message, Boolean isLast, TimeSpan timeout, Object state, MessageAttemptInfo&amp;amp; attemptInfo)
at System.ServiceModel.Channels.TransmissionStrategy.Add(Message message, TimeSpan timeout, Object state, MessageAttemptInfo&amp;amp; attemptInfo)
at System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(Message message, TimeSpan timeout, Object state, Boolean isLast)
at System.ServiceModel.Channels.ReliableOutputConnection.AddMessage(Message message, TimeSpan timeout, Object state)
at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
at SymbolPriceService.ISymbolServiceEvents.SymbolServiceAsyncReturnSymbolsInternalCallBack(DataTable dt)
at SymbolPriceService.SymbolPriceServiceAsync.RefreshSymbolsInternal(Object sender, EventArgs e)
at System.Timers.Timer.MyTimerCallback(Object state)
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
</StackTrace><ExceptionString>System.ComponentModel.Win32Exception: Access is denied</ExceptionString><NativeErrorCode>5</NativeErrorCode></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131076</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2007-10-18T15:42:46.8535383Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="aspnet_wp" ProcessID="3972" ThreadID="8" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>/LM/W3SVC/1/Root/SymbolPriceServiceHost-1-128371957521936743</AppDomain><Exception><ExceptionType>System.ComponentModel.Win32Exception, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Access is denied</Message><StackTrace> at System.ServiceModel.UpnEndpointIdentity.GetUpnFromDownlevelName(String downlevelName)
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromWindowsIdentity(WindowsIdentity windowsIdentity)</StackTrace><ExceptionString>System.ComponentModel.Win32Exception: Access is denied
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromDownlevelName(String downlevelName)

</StackTrace><ExceptionString>System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (400) Bad Request. ---&amp;gt; System.Net.WebException: The remote server returned an error: (400) Bad Request.

at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

--- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.WebException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The remote server returned an error: (400) Bad Request.</Message><StackTrace> at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)</StackTrace><ExceptionString>System.Net.WebException: The remote server returned an error: (400) Bad Request.

at System.Net.HttpWebRequest.GetResponse()

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)</ExceptionString></InnerException></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent><E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2007-10-18T15:42:56.7411487Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="aspnet_wp" ProcessID="3972" ThreadID="8" /><Channel/><Computer>CORK2</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>/LM/W3SVC/1/Root/SymbolPriceServiceHost-1-128371957521936743</AppDomain><Exception><ExceptionType>System.ServiceModel.ProtocolException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The remote server returned an unexpected response: (400) Bad Request.</Message><StackTrace> at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException)

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.RequestOneWayChannelFactory.RequestOutputChannel.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.OutputChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.InternalDuplexChannelListener.ServerCompositeDuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannelDemuxer.DuplexChannelWrapper.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServerReliableChannelBinder`1.DuplexServerReliableChannelBinder`1.OnSend(TDuplexChannel channel, Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout, MaskingMode maskingMode)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Security.SecuritySessionServerSettings.ServerSecurityDuplexSessionChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServerReliableChannelBinder`1.DuplexServerReliableChannelBinder`1.OnSend(TDuplexChannel channel, Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ReliableChannelBinder`1.Send(Message message, TimeSpan timeout, MaskingMode maskingMode)

at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, Boolean maskUnhandledException)

at System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(Message message, TimeSpan timeout, Object state, Boolean isLast)

at System.ServiceModel.Channels.ReliableOutputConnection.AddMessage(Message message, TimeSpan timeout, Object state)

at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)

at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)

at SymbolPriceService.ISymbolServiceEvents.SymbolServiceAsyncReturnSymbolsInternalCallBack(DataTable dt)

at SymbolPriceService.SymbolPriceServiceAsync.RefreshSymbolsInternal(Object sender, EventArgs e)

at System.Timers.Timer.MyTimerCallback(Object state)

at System.Threading._TimerCallback.TimerCallback_Context(Object state)

at System.Threading.ExecutionContext.runTryCode(Object userData)

at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading._TimerCallback.PerformTimerCallback(Object state)






Re: Windows Communication Foundation (Indigo) WCF Callbacks

T.R.Vishwanath - MSFT

This is a handled exception and is not what is causing the failure,


Can you try increasing the max message size on the binding - from the trace that seems to be the problem.






Re: Windows Communication Foundation (Indigo) WCF Callbacks

dcm22

I know that fixing the max message size will fix this particular error. I was using this type of error as a test.

My issue is that I cannot get any error of any kind thrown back to the client.