Page 1 of 1

Ability to Get byte[] from WCF service

Posted: Mon Jan 30, 2017 4:14 am
by njs123

I have simple method which returns byte[].

When I add reference to the service in CSHTML project, the return type of the function changes to string

and when I call the service by running the CSHTML application I get following errors:

An exception of type 'System.ServiceModel.ActionNotSupportedException' occurred in mscorlib.dll but was not handled in user code

Additional information: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).

Kind Regards

Re: Ability to Get byte[] from WCF service

Posted: Mon Jan 30, 2017 6:51 am
by JS-Support @Userware

This is supposed to work fine with the latest Beta 10.8 of CSHTML5.

Please find attached a sample client/server project that demonstrates the passing of a byte array to load an image downloaded from the WCF SOAP web service.

Please let me know if you also have the issue with the attached project, or if you find what's different in the attached sample project compared to your project.