zoukankan      html  css  js  c++  java
  • 没有终结点在侦听可以接受消息的 http://192.168.1.63:8085/LoginService。这通常是由于不正确的地址或者 SOAP 操作导致的

    2016-04-08 09:15:05,581 [8] ERROR System.Threading.Thread - Error
    System.ServiceModel.EndpointNotFoundException: 没有终结点在侦听可以接受消息的 http://192.168.1.63:8085/LoginService。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。 ---> System.Net.WebException: 远程服务器返回错误: (404) 未找到。
    在 System.Net.HttpWebRequest.GetResponse()
    在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    --- 内部异常堆栈跟踪的结尾 ---

    Server stack trace:
    在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
    在 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)
    在 WcfService.ILoginService.CheckUserLogin1(CusLoginModel model)
    在 Client.FormLogin.buttonConfirm_Click(Object sender, EventArgs e) 位置 F:CodeForGitBlitYunClientClientFormLogin.cs:行号 28
    在 System.Windows.Forms.Control.OnClick(EventArgs e)
    在 System.Windows.Forms.Button.OnClick(EventArgs e)
    在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    在 System.Windows.Forms.Control.WndProc(Message& m)
    在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
    在 System.Windows.Forms.Button.WndProc(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    处理方法:

    在侦听地址后面,加上.svc

    http://192.168.1.63:8085/LoginService.svc

    第二个可能

    一个website,如果已经有其他application在监听net.tcp的端口的话,那么需要开启端口共享。或者另外建立一个站点,新建不同端口的bindings

  • 相关阅读:
    windows 系统配置(二)MongoDB
    The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "".
    【读书笔记】C#高级编程 第十三章 异步编程
    【读书笔记】C#高级编程 第十二章 动态语言扩展
    【读书笔记】C#高级编程 第十一章 LINQ
    【读书笔记】C#高级编程 第十章 集合
    【读书笔记】C#高级编程 第九章 字符串和正则表达式
    【读书笔记】C#高级编程 第八章 委托、lambda表达式和事件
    【读书笔记】C#高级编程 第七章 运算符和类型强制转换
    【读书笔记】C#高级编程 第六章 数组
  • 原文地址:https://www.cnblogs.com/chucklu/p/5366679.html
Copyright © 2011-2022 走看看