Friday, November 23, 2007
A small tidbit. In WCF, service code like this

public string MyServiceMethod()

{

    throw new FaultException<string>("It happened!");

}


will make VS break into debugger. Normally you just throw FaultException's, knowing that the dispatcher hadles it to convert it to a fault contract message. But VS thinks that it's an unhandled user exception (it is, actualy). For a smoother debugging experience, just add System.ServiceModel.FaultException`1 to Debug / Exceptions / Common Language Runtime Exceptions, unchecked.


1/19/2008 9:47:04 AM UTC
Hi! Looking at the screenshot... that colour scheme looks really great. Can I find it for download somewhere?
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):