Hello, I am running a C# ServiceHost in a Winforms application that is identical in code to a Windows application.. using wsHttpBinding on port 8731 on the Suse 11.0 VM that is supplied on the Mono downloads page. The service starts fine but when I try to create a proxy to the service, the Windows application crashes with the following error on the server:
Unhandled Exception: Sytem.InvalidOperationException: The reply channel didn't return RequestContext at System.ServiceModel.Dispatcher.ChannelDispatcher+ListenerLoopManger.ProcessRequest () (0x00000) at System.ServiceModel.Dispatcher.ChannelDispatcher+ListenerLoopManager.StartLoopCore () (0x00000) at System.ServiceModel.Dispatcher.ChannelDispatcher+ListenerLoopManager.StartLoop () (0x00000) Client error: The document at the url http://192.168.1.237:8731/ was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'DISCO Document' is 'Discovery document at the URL http://192.168.1.237:8731/ could not be found.'. - The document format is not recognized. - Report from 'WSDL Document' is 'There is an error in XML document (1, 40).'. - <Fault xmlns=''> was not expected. - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'. Metadata contains a reference that cannot be resolved: 'http://192.168.1.237:8731/'. Content Type application/soap+xml; charset=utf-8 was not supported by service http://192.168.1.237:8731/. The client and service bindings may be mismatched. The remote server returned an error: (415) Expected content-type 'text/xml; charset=utf-8' but got 'application/soap+xml; charset=utf-8'. If the service is defined in the current solution, try building the solution and adding the service reference again. Thanks.. any thoughts would be greatly appreciated.. -- View this message in context: http://www.nabble.com/ServiceHost-Crashes-tp21616975p21616975.html Sent from the Mono - Dev mailing list archive at Nabble.com. _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list