Questions tagged [faultexception]

A FaultException is the type of exception WCF services and clients use to communicate exceptions and optionally their details.

A FaultException is the type of exception WCF services and clients use to communicate exceptions and optionally their details. Quoting from the relevant MSDN documentation page:

In a service, use the FaultException class to create an untyped fault to return to the client for debugging purposes.

In a client, catch FaultException objects to handle unknown or generic faults, such as those returned by a service with the IncludeExceptionDetailInFaults property set to true. Because FaultException extends CommunicationException, remember to catch any FaultException objects prior to catching CommunicationException objects if you want to catch them separately.

125 questions
0
votes
0 answers

WCF channel retrying 5 times when I throw a FaultException

I am creating a WCF client channel using DuplexChannelFactory rather than a generated proxy. For a particular method, I am throwing a known FaultException on the server side. I have marked up the service interface with…
GazTheDestroyer
  • 20,722
  • 9
  • 70
  • 103
0
votes
0 answers

FaultException WebService c# when creating file on server

I have a problem with my webservice (no WCF). So, I have a webservice stored on my server (windows 2008 R2). I have a function to create an XML file with XmlTextWritter. When I launch the webservice into my server's browser, and I test my function,…
0
votes
1 answer

Catching Specific FaultExceptions in WF 4

I am trying to set up a try catch block in Workflow 4 that is attempting to calling out to another service. This service could throw a number of specific, generically typed fault exceptions: FaultException In the try catch I want to…
aceinthehole
  • 5,122
  • 11
  • 38
  • 54
0
votes
1 answer

FaultException and no WCF service

I'm receiving the following System.ServiceModel.FaultException in my Windows Phone app. A bit of research on this exception shows that it is related to a SOAP fault. That's odd since I am not making any soap calls, especially when the exception…
earthling
  • 5,084
  • 9
  • 46
  • 90
0
votes
1 answer

Using XmlSerializer to seriailze custom faults in WCF REST based Application

In my rest based WCF service I would like to throw a custom fault exception and use XML Serializer to serialize the results as I have a specific XML output format to use. I have followed online examples exactly but after the code throws an exception…
Euston
  • 81
  • 2
  • 10
1 2 3
8
9