WCF 无法解析此远程名称

baidu_16849617 2016-12-13 05:56:20

这个问题怎么解决?
http://192.168.1.13/barcode/webservice/SAP/BarcodePrintService.svc
我用这个可以在浏览器上访问,但是把ip改成电脑名就访问不了了。
...全文
640 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
维秀斯丢丢 2017-02-15
  • 打赏
  • 举报
回复
什么叫ip改成电脑名? 这个没听说过
showwe 2017-02-15
  • 打赏
  • 举报
回复
你那个名称的机器在你的DNS里能解析吗? 你那个IP在不在你能访问到的网络里,是通过这个IP访问吗?开放了那个端口给你访问吗?你测试时那个服务有在运行没 :)
liaoxujun01 2017-02-14
  • 打赏
  • 举报
回复
http://192.168.1.13/barcode/webservice/SAP/
baidu_16849617 2016-12-14
  • 打赏
  • 举报
回复
服务端相关配置 <services> <service behaviorConfiguration="CommonServiceBehavior" name="CommonService"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="ICommonService" contract="ICommonService"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <behavior name="CommonServiceBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="200" maxConcurrentInstances="200" /> </behavior> <binding name="ICommonService" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" messageEncoding="Text" receiveTimeout="04:00:00" sendTimeout="00:03:00" > <readerQuotas maxDepth="6553600" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="6553600" maxNameTableCharCount="6553600"/> <reliableSession ordered="true" inactivityTimeout="04:00:00" enabled="true" /> <security mode="None"/> </binding> 客户端相关配置 <binding name="WSHttpBinding_ICommonService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="04:00:00" enabled="true" /> <security mode="None"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" /> </security> </binding> <endpoint address="http://localhost:6728/WCF_Server/CommonService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ICommonService" contract="WCF_CommonService.ICommonService" name="WSHttpBinding_ICommonService"> <identity> <dns value="localhost" /> </identity> </endpoint>
baidu_16849617 2016-12-14
  • 打赏
  • 举报
回复
有没有人遇到过啊?

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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