WCF Silverlight: Exception and Serialization

Exception is used as a mechanism to report issue by an application.  In WCF webservice implementation, an application may throw exception which will be wrapped with Fault and sends over to the client.  However, if an application chooses to return Exception as parameter instead, the exception needs to be serialized.  I like to describe how…

1

WCF and Fault

Fault is generally used as a way for webservices to report rich error information to clients who perform webservice call (think .Net exception).  WCF has a rich support for webservice to provide fault information. 1)      Throw typical exception 2)      Throw FaultException 3)      Throw FaultException with strongly-typed detail Note: In either case, this is considered application…

1

WCF Duplex Channel State and Exception

While testing the Duplex Channel with Callback implementation, I found out how the fault or various exceptions on the callback would affect the Duplex channel state.  1)      Callback implementation received a message with an invalid or an unexpected action.    In this case, Duplex Channel will be closed and can no longer be used for communication….

1

RemotingException: “All pipe instances are busy.” or “The system cannot find the file specified.”

Today, I ran into an interesting issue.  One of our customers was using the .Net Remoting IPC client in the asp.net application communicating with a local service.  The asp.net application was configured with impersonation.  The IPC client was simply making multiple calls to the remoting service.  Every now and then, the call failed RemotingException with…

1