WCF - 无法调度消息,因为端点地址处的服务...对于该地址的协议不可用 [英] WCF - The message could not be dispatched because the service at the endpoint address ... is unavailable for the protocol of the address

查看:41
本文介绍了WCF - 无法调度消息,因为端点地址处的服务...对于该地址的协议不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我可以发泄一下吗??我对此感到非常厌烦和厌倦.我大部分时间都在工作,WCF 服务运行良好.下次我运行我的应用程序并进行 WCF 调用时,砰!tcp 套接字不再可用.我已经搜索了高低来解决这个问题,但没有真正的解决方案.我能找到的唯一解决方案是重新启动机器,这是一个巨大的时间浪费和负担.重启WPA服务、net.tcp服务、IIS等都不行.注销并重新登录并不能解决问题.只有重新启动才能解决此问题.除了再次运行我的应用程序进行 WCF 调用之外,我什么都不做,而这种废话发生了.任何东西都没有配置问题.我几个月来一直在处理这个问题,但找不到任何具体的原因或解决方案来解释为什么会发生这种情况.它发生在我的防火墙打开或关闭的情况下,无关紧要.

Ok, can I vent?? I am so sick and tired of this. I'm working away most of the day and the WCF services are working great. Next time I run my app and make a WCF call, bam! the tcp socket is no longer available. I have searched high and low to solve this and there is no real solution. The only solution I can find is to reboot the machine which is a huge time-waste and burden. Restarting WPA service, net.tcp service, IIS, etc. does not do a thing. Logging off and back on does not fix it. Only a reboot fixes this issue. I do nothing except run my app again making a WCF call, and this crap happens. There are no configuration issues with anything. I have been dealing with this for months and cannot find any specific reason or solution as to why this happens. It happens with my firewall on or off, does not matter.

任何人的见解?我认为 WCF/net.tcp 层中确实存在导致这种情况的错误.有时在更改 Web.config 时,我什至在生产 2008 R2 服务器上得到它,所以我学会了在更改之前停止 IIS、WPA、net.tcp 等服务,然后重新启动它们.好痛苦.

Any insight from anyone? I think there is truly a bug in the WCF / net.tcp layer that is causing this. I even get it on a production 2008 R2 server when sometimes making a Web.config change, so I have learned to stop the IIS, WPA, net.tcp, etc. services prior to the change then restart them. What a pain.

我正在使用 .NET4、VS2010、所有服务包等.一切都是最新的.

I'm using .NET4 all around, VS2010, all service packs, etc. applied. Everything is the most current.

请原谅我重新启动.....

Excuse me while I reboot.....

有人可以帮忙吗?

推荐答案

  1. 打开命令提示符
  2. 导航到 c:\windows\microsoft.net\framework64\v4.0.30319
  3. 使用命令ServiceModelReg.exe -r"注册服务模型

学分去那里http://kumaranbose.blogspot.be/2010/08/cryptic-wcf-nettcp-errors.html

这篇关于WCF - 无法调度消息,因为端点地址处的服务...对于该地址的协议不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆