I am trying to debug a web service exception. I have both a client and a service running in debug mode in the Visual Studio 2010 infrastructure, C #,. Net 4.0.
When I start the client and get it to call the web service, I get an exception:
Type: System.ServiceModel.FaultException`1 [[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089]] Error message: Type initializer for 'myService.Service' made an exception .
Source: mscorlib
However, the service does not show any exceptions.
I found that the stack trace indicates that the call was made and the response was being processed (even if the response was an exception):
Server Stack Trace:
in System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood (message reply, MessageFault error, String action, MessageVersion version, error converter failure error)
in System.ServiceModel.Channels.ServiceChannel.HandleReply (operation ProxyOperationRuntime, ProxyRpc & rpc)
in System.ServiceModel.Channels.ServiceChannel.Call (String action, Boolean oneway, ProxyOperationRuntime operation, Object [] ins, Object [] outs, TimeSpan timeout)
in System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessageCall, ProxyOperationRuntime method)
in System.ServiceModel.Channels.ServiceChannelProxy.Invoke (message with message)
Can someone point out pointers to what else do I need to do to debug this?
I am currently setting up the Trace Viewer Service tool to see if it will tell me more.
source share