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 'http://tempuri.org/IContract2/GetImage' 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).