Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Faults » Answers   (RSS)

Writing Multiple Detail Elements in Faults

How do I create a fault with multiple child nodes for the detail element? All of the overloads of CreateFault take a single argument for detail, which lets me build a tree of nodes but not a forest. The trick here is not to get hung up on trying to make
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Embedding Arbitrary XML in Faults

How can I directly craft the XML content that goes into a fault detail? Getting control over the detail element doesn't have to mean crafting the fault message yourself. While WCF requires that the fault detail be serializable using a data contract, remember

Increasing the Maximum Fault Size

When the service sends a fault message with a large detail, my client is unable to read the fault. Changing the standard settings for the maximum message size doesn't help. How can I read large fault messages? Fault messages have their own special quota

Actions for FaultExceptions

What should I set the action parameter to when creating a FaultException? There is indeed a pair of overloads for creating fault exceptions that take an action parameter, although most of the overloads lack this. public FaultException(TDetail detail,
Posted by Nicholas Allen | 2 Comments
Filed under: , , ,

Modifying HTTP Error Codes, Part 2

Let's pick up where we left off last time with the question… How do I modify the HTTP status code that gets sent back with a fault? It's clear that we need to plug into the fault generation process somehow, but in past articles we've only seen fault handling
Posted by Nicholas Allen | 2 Comments
Filed under: , , , ,

Modifying HTTP Error Codes, Part 1

Back to errors and faults for a bit with this two part series on modifying the HTTP status code used for fault messages. First, we'll need some background. What happens at the HTTP level when a web service encounters a problem? That's a good question
Posted by Nicholas Allen | 2 Comments
Filed under: , , , ,

Dangers of Application Domain Recycling

Secure calls to a hosted service are intermittently failing with the following error message: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. The inner exception
Posted by Nicholas Allen | 1 Comments
Filed under: , , ,

A Problem with Large Faults

Fault messages have their own quota sizes, allowing you to limit the amount of data you'll process in response to an error. Existing transport protocols don't know about SOAP fault messages, but some of them have their own error reporting mechanisms that
 
Page view tracker