Note that there are some explanatory texts on larger screens.

plurals
  1. PODebugging WCF Web Service Faults
    primarykey
    data
    text
    <p>I am trying to debug a web service exception. I have both the client and the service running in debug mode in Visual Studio 2010, C#, .net 4.0 framework.</p> <p>When I run the client, and get it to call the web service, I get an exception:</p> <blockquote> <p><strong>Type:</strong> System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] <strong>Error Message:</strong> The type initializer for 'myService.Service' threw an exception.<br> <strong>Source:</strong> mscorlib</p> </blockquote> <p>However, the service shows no exceptions whatsoever.</p> <p>The stack trace that I got seems to indicate that the call was made, and the reply was being handled (even if the reply was an exception):</p> <blockquote> <p>Server stack trace: <br><br> at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)<br><br> at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc) <br><br> at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) <br><br> at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)<br><br> at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p> </blockquote> <p>Can someone give pointers on what else I need to do to debug this?</p> <p>I'm currently setting up the <a href="http://msdn.microsoft.com/en-us/library/ms732023.aspx" rel="nofollow">Service Trace Viewer</a> tool to see if that will tell me anything more.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload