Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

[MessageHeader(MustUnderstand = true)] doesn't seem to work in Mono

$
0
0

Has anyone come across this?

I've got the following in my WCF contract:

[MessageHeader(MustUnderstand = true)]

This is being ported from .Net to Mono, but I get the following build error:

Error 136 The type or namespace name 'MessageHeaderAttribute' could not be found (are you missing a using directive or an assembly reference?)

Error 141 Using the generic type 'System.ServiceModel.MessageHeader' requires 1 type arguments

If I comment them out, it'll build, the problem I have is this is shared code so that's not a solution. I've got an existing Windows application and now a Xamarin.Forms one that needs to talk to the same endpoint. I've already worked out the handling of a basicHttp and WsHttp binding into the same endpoint - that's not causing me issues.

I've also tried playing around with the PCL types, but that only seems to break even more unrelated things for me.

If anyone has some hints/tips I'd be grateful to hear from you!


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>