Bug 19871 - WCF FaultException<T> basicHttpBinding Addressing Version 'AddressingNone' does not support adding WS- Addressing headers.
Summary: WCF FaultException<T> basicHttpBinding Addressing Version 'AddressingNone' do...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-17 18:28 UTC by pub
Modified: 2014-05-17 18:28 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description pub 2014-05-17 18:28:50 UTC
When Server runs on MONO and client runs on .NET the FaultException is not properly serialized and client throws exception:

EXC: System.InvalidOperationException: Addressing Version 'AddressingNone (http:
//schemas.microsoft.com/ws/2005/05/addressing/none)' does not support adding WS-
Addressing headers.

Reproduce by running sample project:

https://github.com/baulig/Provcon-Faust/tree/034df9622bcd772fcc8547a8931c60d7e319807d/TestWCF

Run server part on Linux machine with MONO 3.4.0 and client on windows with .NET Framework
fiddler output:
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/TestExceptionArgumentExceptionFault</Action></s:Header><s:Body><s:Fault><faultcode>Sender</faultcode><faultstring xml:lang="en-US">Hello World</faultstring><detail><ArgumentException xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System"><_data xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /><_remoteStackTraceString i:nil="true" /><captured_traces xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Diagnostics" i:nil="true" /><class_name i:nil="true" /><help_link i:nil="true" /><hresult>-2147024809</hresult><inner_exception i:nil="true" /><message>Hello World</message><native_trace_ips i:nil="true" /><param_name i:nil="true" /><remote_stack_index>0</remote_stack_index><source i:nil="true" /><stack_trace i:nil="true" /><trace_ips i:nil="true" /></ArgumentException></detail></s:Fault></s:Body></s:Envelope>


When both client and server runs under .NET, everything is fine.
fiddler output:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="cs-CZ">Hello World</faultstring><detail><ArgumentException xmlns="http://schemas.datacontract.org/2004/07/System" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><ClassName i:type="x:string" xmlns="">System.ArgumentException</ClassName><Message i:type="x:string" xmlns="">Hello World</Message><Data i:nil="true" xmlns=""/><InnerException i:nil="true" xmlns=""/><HelpURL i:nil="true" xmlns=""/><StackTraceString i:nil="true" xmlns=""/><RemoteStackTraceString i:nil="true" xmlns=""/><RemoteStackIndex i:type="x:int" xmlns="">0</RemoteStackIndex><ExceptionMethod i:nil="true" xmlns=""/><HResult i:type="x:int" xmlns="">-2147024809</HResult><Source i:nil="true" xmlns=""/><WatsonBuckets i:nil="true" xmlns=""/><ParamName i:nil="true" xmlns=""/></ArgumentException></detail></s:Fault></s:Body></s:Envelope>

Note You need to log in before you can comment on or make changes to this bug.