积极答复者
WinRT调用WCF报错

问题
-
WinRT平台代码
EndpointAddress address = new EndpointAddress("net.tcp://127.0.0.1/SayHelloContract"); ChannelFactory<SayHelloContract> Contract = new ChannelFactory<SayHelloContract>(new NetTcpBinding(), address); string res = Contract.CreateChannel().SayHi("");
服务器端配置文件
<system.serviceModel> <services> <service name="Service.SayhelloService"> <endpoint address="net.tcp://127.0.0.1/SayHelloContract" binding="netTcpBinding" contract="Contracts.SayHelloContract"></endpoint> </service> </services> </system.serviceModel>
服务应该没什么问题 但是WinRT平台调用总是抱着个错误 而且不能实现双工通信
弄了好久未解决
答案
-
参考下下面帖子的解决方案:
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已标记为答案 CaillenModerator 2013年10月21日 6:23
全部回复
-
忘了把错误类型说出来了
A call to SSPI failed, see inner exception.
inner exception? -
参考下下面帖子的解决方案:
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已标记为答案 CaillenModerator 2013年10月21日 6:23