DCSIMG
exceptions - urig - Tidbits from a .net life

Browse by Tags

WCF: "An error occurred when verifying security for the message." and Service Security Audit
23 January 11 01:39 PM | urig | 1 comment(s)
I’ve been struggling with an obscure WCF FaultException that kept popping up from time to time when we worked with my services. Basically I’d get a MessageSecurityException that says: "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." And the inner FaultException would say: " An error occurred when verifying security for the message. " It turns out that this is a “garbage” exception that potentially...
Good Read: Design Guidelines for Exceptions
03 December 08 02:55 PM | urig | 2 comment(s)
I've often wished for real world guidance on exceptions handling in .net applications. Deciding on a strategy for throwing and catching exceptions is tricky. On the one hand exceptions are said to be the better way of handling execution errors in code. On the other hand, exceptions bring with them the overhead of instantiating them and throwing them which could negatively affect performance. A while ago I've found some good advice in Microsoft's own Design Guidelines for Exceptions section...