引用web sevice之后,debug模式时正常的,但是部署在Task Schedule中报错 EndpointNotFoundException

weixin_38061848 2017-07-17 07:41:09
1引用web service 报错:
Error: Exception: EndpointNotFoundException
               Message: There was no endpoint listening at http://测试service地址//Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for
more details.
               Source: mscorlib
               StackTrace: 
Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
2.debug模式下时可以正常引用的,部署在Task Scheduler中就不可以,web servic 和 部署的Task Scheduler在同一个server上,windows server 2012 R2
3.将Task Scheduler部署在另外一台(不和web service在同一台server上)也是可以正常运行的。
...全文
34 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧