首页 新闻 会员 周边

WCF 远程服务器返回错误: (404) 未找到。"

0
悬赏园豆:15 [已关闭问题] 关闭于 2009-10-14 21:57

WCF在另外一台PC机的IIS7中发布,客户端用IE能访问正常.
但是在我在客户端用程序运行访问时出异常了,到底是IIS的问题还是我配置的问题?

我用的是WshttpBinding

理解了文档内容,但无法进行处理。
捕捉到 System.ServiceModel.EndpointNotFoundException
  Message="没有终结点在侦听可以接受消息的 http://localhost:1307/Test.svc

这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参阅 InnerException 以了解详细信

息。"
 Message="远程服务器返回错误: (404) 未找到。"
       Source="System"
       StackTrace:
            在 System.Net.HttpWebRequest.GetResponse()
            在
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForRep

ly(TimeSpan timeout)
       InnerException:

问题补充: <client> <endpoint address="http://XX.XX.X.11/WCF/Test.svc" behaviorConfiguration="ClientCredentialsBehavior" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IMyService" contract="ServiceReference.IMyService" name="WSHttpBinding_IMyService"> <identity> <certificate encodedValue="Se6B7/QYsYjMu3RgyLmievYvtDcTd8LVXXpMk8yBQ9JVCLql9RGLAgzSoQ+PWxosZjmfRqmazJ2MRvL5FNM5Cgvad1x7H0wFjrdFW/4U3Z+Byzk8LsjXUzSWfnyqzxwdnu0byu9yO4SltxlKD6sDmqqujRv3ii9vpuPmgtUO9FFKnmtbjlbuSNPILpscwajSD/RkCPAdRhcdO4ov/Uc6vP3TJrJ5UcX2GgpWcl577ZqOpO36IIo2p3fwplLMk5PL3lmvlahl0k60uCPrV9qWE7KdjoHvwLdH+/97V+D5j7F8wOHgX2yd+G2s=" /> </identity> </endpoint> </client> <behaviors> <endpointBehaviors> <behavior name="ClientCredentialsBehavior"> <clientCredentials> <serviceCertificate> <authentication certificateValidationMode="None" /> </serviceCertificate> </clientCredentials> </behavior> </endpointBehaviors> </behaviors> </system.serviceModel> </configuration>
haylhf的主页 haylhf | 菜鸟二级 | 园豆:420
提问于:2009-10-10 10:14
< >
分享
所有回答(1)
0

把 " http://localhost:1307/Test.svc"改成你另一台部署wcf服务的机器的ip或域名.

Launcher | 园豆:45045 (高人七级) | 2009-10-10 11:31
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册