c# 4.0 - Debugging WCF Web Service Faults -


I'm trying to debug a web service exception I both customer service and Visual Studio 2010, C # ,. Running in debug mode in the NAT 4.0 framework. Runs

When I have a client, and I let it get 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: to 'myService.Service' Type launcher threw an exception
source :. mscorlib

However, no exceptions have been shown in this service.

I think that was the call stack trace indicate, and was being handled answer (even if the answer was an exception):

Server stack trace :

on System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood (Send reply, MessageFault mistake, string action, MessageVersion version, faultConverter faultConverter)

system. Commodity shear ViceModel.Channels.ServiceChannel.HandleReply (ProxyOperationRuntime operation, Proksiarpisi & amp; RPC)

System.ServiceModel.Channels.ServiceChannel.Call (String action, Boolean oneway, ProxyOperationRuntime operation, [] these, Object [] exclusion in the system, TimeSpan expired)

ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage can afford to methodCall, ProxyOperationRuntime operation)

System.ServiceModel.Channels.ServiceChannelProxy.Invoke (iMessage messages) on

No signal

I am currently looking at this tool to tell me something else.

The error message indicates that your service class MyServicekService it the Service Host process under a static constructor or field initializer expression,

debugger is caused by an unhandled exception action to avoid static CTO is loaded service type with a bug, just static Sitioar and Field initialization puts breakpoints on expressions, and as long as the original up Step Prahlad is not long.

Fusion (.NET class loader) log possibly will take you there, if you know how to use it.

Comments