I created a custom InvalidSessionException . However, trying to catch or evaluate if an exception occurred is of this type, it does not work. Bearing in mind that it is both EX is and Catch Ex , it does not evaluate the value of InvalidSessionException
try { acc = this.fda.GetAccountHeader(this.selectedTicket.AccountId); } catch (Exception ex) { if (ex is Enterprise.Data.InformationModel.CustomExceptions.InvalidSessionException) { this.lblError.Text = Resources.Resource.error_sessionedTimedOut; this.MPError.Show(); } return; }
I also tried (without any difference in results)
catch (Enterprise.Data.InformationModel.CustomExceptions.InvalidSessionException ex) { this.lblError.Text = Resources.Resource.error_sessionedTimedOut; this.MPError.Show(); return; } catch (Exception ex) { return; }
From what I can say that the exception thrown is of the correct type.

Additional Information:
ex.GetType().FullName = "System.ServiceModel.FaultException1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"
Is reuse enabled in the service? 
c # exception web-services wcf
owen gerig
source share