WCF client: Type 'System.ServiceModel.FaultException' cannot be serialized. #17700
Labels
External
This is an issue in a component not contained in this repository. It is open for tracking purposes.
I'm trying to consume WCF service. Proxy-reference was generated using VS Connected Service based on WSDL. Then when running RPC-method on Reference class im getting the following inner exception below. The call to service is fine - i can see it in fiddler.
Type 'System.ServiceModel.FaultException' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized, and no attributes will be required.
I checked FaultException class - it's public with parameterless constructor:
...packages\system.servicemodel.primitives\4.7.0\ref\netcoreapp2.1\System.ServiceModel.Primitives.dll
Looks as a bug to me.
The text was updated successfully, but these errors were encountered: