调用wcf报异常The remote name could not be resolved

布谷歌 2014-09-24 10:10:33
c#网站,调用wcf报异常。
我的网站和wcf站点的顶级域名相同。 网站域名是http://www.shengshidanqing.com/, wcf服务域名是wcf.shengshidanqing.com,,可以访问http://www.shengshidanqing.com/查看异常信息。wcf站点本身是可以访问了。 我这个网站也一直可以访问,今天突然不行了, 报这个异常,大家给说说是什么原因呢?

网站web.config里的serviceModel节点配置:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IBaseDataSrv" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://wcf.shengshidanqing.com/BaseDataSrv.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IBaseDataSrv" contract="WCFService.IBaseDataSrv" name="BasicHttpBinding_IBaseDataSrv" />
</client>
</system.serviceModel>


wcf站点的配置是默认的
...全文
430 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
布谷歌 2015-04-16
  • 打赏
  • 举报
回复
无满意回复,依然散分。
於黾 2014-09-24
  • 打赏
  • 举报
回复
你确定wcf正常运行着,而不是宕掉了?
布谷歌 2014-09-24
  • 打赏
  • 举报
回复
引用 2 楼 Z65443344 的回复:
你ping一下www.shengshidanqing.com,看能不能ping通
仅仅是调用wcf的网页打不开, 其他不掉wcf的是可以打开的,比如 http://www.shengshidanqing.com/AboutUs/ArtCollection.aspx
於黾 2014-09-24
  • 打赏
  • 举报
回复
你ping一下www.shengshidanqing.com,看能不能ping通
於黾 2014-09-24
  • 打赏
  • 举报
回复
路由名称无法解析? 是不是域名服务器到期该续费了...
WCF & WPF 聊天程序源码For those that have read some of my other CodeProject articles you will probably know, that I am not shy about trying out new technologies. But one good thing about that is that I generally share what I learn right here, and this article is one of the hardest ones I've done IMHO. This article is about how to create a peer-to-peer chat application using Windows Communication Foundation (WCF) and also how to make it look nice using Windows Presentation Foundation (WPF).When I first started reading about WCF, the first place I looked was the MSDN WCF Samples (which I read a lot), but they weren't that great. I also found lots of chat apps based on the MSDN versions, which were no good as they could not return the list of users within the chat application. So I wanted to create a nice WPF styled app with the list of connected chatters. So I hunted around a bit more and eventually came across a damn fine/brilliant article by Nikola Paljetak, which I have tailored for this article. I have OK'd this with Nikola, and the original article content is here. To be honest the original article was pure brilliance (it should be mentioned Nikola is a Professor), but it took a while for me to get what was going on, as the code wasn't commented. I have now commented all code, so I think it will still make a very nice discussion/article for those that are new to WCF/WPF. I was totally new to WCF before this article, so if I can do it, so can all of you.So that's what this article is all about. At the end of the article, I would hope you understand at least some of the key WCF areas, and possibly be inspired enough to look at the WPF side of this article also.

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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