km4gedan 2016-04-06 05:27 采纳率: 58.3%
浏览 1938

WCF测试程序,Wcftestclient.exe,无法使用!

WCF测试程序,Wcftestclient.exe,无法使用!
远程客户端调用都成功了,但是使用Wcftestclient.exe仍然报下面 的错!!
图片说明

申明: 已经添加上了,我是64位的系统,求助

  • 写回答

1条回答 默认 最新

  • km4gedan 2016-04-16 07:17
    关注

    错误如下:
    远程服务器返回了意外响应: (417) Expectation failed。

    Server stack trace:
    在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory1 factory, WebException responseException, ChannelBinding channelBinding)
    在 System.ServiceModel.Channels.HttpChannelFactory
    1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
    在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
    在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
    在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    在 ILoginService.Login(String us, String ps)
    在 LoginServiceClient.Login(String us, String ps)

    Inner Exception:
    远程服务器返回错误: (417) Expectation failed。
    在 System.Net.HttpWebRequest.GetResponse()
    在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

    评论

报告相同问题?

悬赏问题

  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机