问题1:
未处理System.ServiceModel.ProtocolException
HResult=-2146233087
Message=服务 http://localhost:8734/Design_Time_Addresses/WcfServiceLibrary1/Service1/ 不支持内容类型 application/soap+xml; charset=utf-8。客户端和服务绑定可能不匹配。
怎么解决 ,百度了下 网上说的和我的不一样
问题2:
在host 中
_host = new ServiceHost(typeof(WcfServiceLibrary1.Service1));
_host.Open();
启动了 wcf后 , wcf有没有立即执行的方法?
我的业务要求是 Open后 , Service1 中 立即开始 socket 的监听