faultexception
throwing faultcode("Receiver") but responding with "Server"
I\'m throwing a FaultCode of Receiver, but the client is getting back \"s:Server\" as a response faultcode. How can i get a response of \"s:Receiver\"?[详细]
2023-04-04 17:25 分类:问答Handling WCF Faults
I am working on a client that is consuming a WCF service. In various cases, the service simply raises a FaultException with an associated message informing of the reason behind the given fault.[详细]
2023-03-17 18:50 分类:问答Why do WCF Fault Exceptions not retain their details after crossing two boundaries?
When a fault exception is thrown across a boundary, it can take a typ开发者_C百科e parameter, to pass a detail object across the WCF boundary. However, I have noticed that when a fault exception cross[详细]
2023-03-12 01:33 分类:问答WCF - calling a void service (is it still synchronous)?
Basically, if my service is: public void DoSomethingThatTakesAwhile() { ... }, will the call to that service cause my application to wait for the method to finish?[详细]
2023-03-06 09:44 分类:问答WCF: SOAP Fault or normal Exception(s) in DataContract class
The main parameter to my Service\'s OperationContract is a class called Preapproval. In the Preapproval class, there are a few public getters/setters for the DataMember attributes. I have code that va[详细]
2023-02-21 02:33 分类:问答Wcf and ExceptionDetail Issue
I have created my own class like this: [DataContract] public class MyOperationFault : ExceptionDetail { /// <summary>[详细]
2023-02-14 17:48 分类:问答Unit testing WCF Faults
What\'s the best way to unit test expected faults from WCF services? I am attempting to unit test a WCF service which is (correctly) throwing FaultExceptions for a certain reproducible error. The uni[详细]
2023-01-23 13:43 分类:问答WCF FaultException Without Sending StackTrace
开发者_如何学运维I have some WCF services with predefined FaultContract attributes. When the FaultException<TDetail> exceptions are thrown, they\'re sending StackTrace, Source and other potentia[详细]
2023-01-22 16:13 分类:问答How to invalidate a C# WCF session if login is incorrect
I am writing a remote service for an application using WCF, in which login information is kept in a database. The service requires session establishment through a login or account creation call. There[详细]
2023-01-21 17:09 分类:问答FaultException.Detail coming back empty
I am trying to catch a given FaultException on a WCF client. I basically need 开发者_Go百科to extract a inner description from the fault class so that I can then package it in another exception for th[详细]
2023-01-15 02:34 分类:问答