私は wcf サービスを持っており、それを ASP.net MVC および WCF RIA サービスに使用しました。エラー例外を ASP.net MVC にキャッチすることはできますが、WCF RIA サービスにキャッチすることはできません。
次のコードは、WCF サービスを使用する wcf ria サービス用です。
public class MyService : LinqToEntitiesDomainService<MyEntities>
{
try
{
ExternalServiceProxy.SaveData();
}
catch(FaultException<ExceptionInfo> ex)
{
//Not able to catch faultexception
}
catch(Exception ex)
{
//Every time catch exception and faultexception information lost
}
}