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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog