I'm trying to get WCF Discovery to work in mono 3.2.8. The mono web page mentions that a lot of the Discovery behavior should be there, but I can't get it to work via code set up or App.config setup. This works 100% in .net, so I know that at least the principles are correct.
This is similar to the unanswered question at: WCF Udp Discovery in mono
but, my specific question is: Is there any way of using WCF Discovery in mono?
App.config setup gives this error:
[ERROR] FATAL UNHANDLED EXCEPTION: System.Configuration.ConfigurationErrorsException:
Error deserializing configuration section behaviors:
Invalid element in configuration. The extension name 'serviceDiscovery' is not
registered in the collection at system.serviceModel/extensions/behaviorExtensions
Code setup gives this error:
System.InvalidOperationException: Contract 'TargetService' is not implemented
in this service 'MyService'
I can provide the code if needed, but since I'm asking for another way that works I don't believe it's needed at this point.
If you reference Mono System.ServiceModel.Discovery in 4.5 - you'll note that there is a NotImplemented icon on CreateBehavior() (located at: System.ServiceModel.Discovery.Configuration.ServiceDiscoveryElement) which seems to be the root cause of my issue.