Posts Tagged ‘Categories’

WCF useful links

Posted: December 5, 2010 in Categories, WCF
Tags: , ,

WCF Architecture Overview –
http://msdn.microsoft.com/en-us/library/aa480210.aspx

WCF Getting Started –
http://msdn.microsoft.com/en-us/library/ms734712.aspx

WCF 3.5 samples –
http://msdn.microsoft.com/en-us/library/ms751514.aspx

WCF 4.0 samples –
http://msdn.microsoft.com/library/dd483346(VS.100).aspx

Net endpoint blog (Blog by the .NET and AppFabric teams about WCF and WF development, deployment, and management) –

http://blogs.msdn.com/endpoint/

WCF REST Starter Kit –
http://www.asp.net/downloads/starter-kits/wcf-rest

WCF Forum –
http://social.msdn.microsoft.com/Forums/en/wcf/threads/

WCF Test Client – (WcfTestClient.exe)
http://msdn.microsoft.com/en-us/library/bb552364.aspx

(more…)

Exception Handling in WCF

Posted: December 4, 2010 in WCF
Tags:


If you are new to wcf services,an obvious mistake that you would make while writing an exception handling code is by simply using a throw in catch block thinking that client can read it.This assumption is wrong and finally it would end up in the below error message.

“System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.”

In WCF, you should not throw standard .NET exceptions as your client could be designed in some other platform like Java which has no concept of .NET exceptions.Instead, you need to throw FaultExceptions which is the standard behavior for WCF