本文介绍了可以接受这个消息。这通常是由错误的地址或SOAP操作引起的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 这是我的app.config < system.serviceModel > < 服务 > <! - 此部分是可选的,在.NET Framework 4中引入了新的配置模型。 - > < 服务 名称 = UpdateManager.Communication.ProductManager behaviorConfiguration = ProductManagerServiceBehavior > < 主机 > < baseAddresses > < add baseAddress = http:// localhost:8002 / UpdateManager / ProductManager / service / > < / baseAddresses > < / host > <! - 此端点公开在主机提供的基地址:http:// localhost:8000 / UpdateManager / service - > < 端点 地址 = binding = wsHttpBinding 合同 = UpdateManager.Communication.Interfaces.IProductManager / > < ! - mex端点公开在http:// localhost:8000 / UpdateManager / ProductManager / service / mex - > < endpoint address = mex binding = mexHttpBinding 合同 = IMetadataExchange / > < / service > < / services > < 行为 > < serviceBehaviors > < 行为 名称 = ProductManagerServiceBehavior > < 服务ceMetadata httpGetEnabled = true / > < serviceDebug includeExceptionDetailInFaults = true / > < / behavior > < / serviceBehaviors > < /行为 > < / system.serviceModel > 我有这个错误为什么 错误 下载 'http: // localhost:8002 / UpdateManager / ProductManager / service / _vti_bin /ListData.svc/$metadata'。 无法 到 connect 远程 服务器 Aucune connexion n'a pu être établie car l'ordinateur cible l'aexpressémentrefusée 127 。 0 。 0 。 1:8002 元数据 包含 a reference 不能 是 已解决: ' http: // localhost:8002 / UpdateManager / ProductManager / service'。 no endpoint listen at http: // localhost:8002 / UpdateManager / ProductManager / service,可以接受该消息。这通常是由错误的地址或SOAP操作引起的。有关详细信息,请参阅InnerException(如果存在)。 无法 到 connect 远程 服务器 Aucune connexion n'a pu être établie car l'ordinateur cible l'aexpressémentrefusée 127 。 0 。 0 。 1:8002 如果 service 在 当前中定义 解决方案,尝试 建设 解决方案 和 添加 服务 参考 再次。 解决方案 元数据'。 无法 到 connect 远程 服务器 Aucune connexion n'a pu être établie car l'ordinateur cible l'aexpressémentrefusée 127 。 0 。 0 。 1:8002 元数据 包含 a 参考 不能 已解决: 'http: // localhost:8002 / UpdateManager / ProductManager / service'。 no endpoint listening at at http: // localhost:8002 /可以接受消息的UpdateManager / ProductManager /服务。这通常是由错误的地址或SOAP操作引起的。有关详细信息,请参阅InnerException(如果存在)。 无法 到 connect 远程 服务器 Aucune connexion n'a pu être établie car l'ordinateur cible l'aexpressémentrefusée 127 。 0 。 0 。 1:8002 如果 service 在 当前中定义 解决方案,尝试 建设 解决方案 和 添加 服务 参考 再次。 查看您的错误消息: 在http:// localhost:8002 / UpdateManager / ProductManager / ser中没有监听端点可以接受这个消息的恶习。这通常是由错误的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。 首先查看内部异常,如建议的那样,并确保地址和服务正确并正在运行 This is my app.config<system.serviceModel> <services> <!-- This section is optional with the new configuration model introduced in .NET Framework 4. --> <service name="UpdateManager.Communication.ProductManager" behaviorConfiguration="ProductManagerServiceBehavior"> <host> <baseAddresses> <add baseAddress="http://localhost:8002/UpdateManager/ProductManager/service"/> </baseAddresses> </host> <!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/UpdateManager/service --> <endpoint address="" binding="wsHttpBinding" contract="UpdateManager.Communication.Interfaces.IProductManager" /> <!-- the mex endpoint is exposed at http://localhost:8000/UpdateManager/ProductManager/service/mex --> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ProductManagerServiceBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>And I have this error whyThere was an error downloading 'http://localhost:8002/UpdateManager/ProductManager/service/_vti_bin/ListData.svc/$metadata'.Unable to connect to the remote serverAucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002Metadata contains a reference that cannot be resolved: 'http://localhost:8002/UpdateManager/ProductManager/service'.There was no endpoint listening at http://localhost:8002/UpdateManager/ProductManager/service that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.Unable to connect to the remote serverAucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002If the service is defined in the current solution, try building the solution and adding the service reference again. 解决方案 metadata'.Unable to connect to the remote serverAucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002Metadata contains a reference that cannot be resolved: 'http://localhost:8002/UpdateManager/ProductManager/service'.There was no endpoint listening at http://localhost:8002/UpdateManager/ProductManager/service that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.Unable to connect to the remote serverAucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 127.0.0.1:8002If the service is defined in the current solution, try building the solution and adding the service reference again.Look at your error message:There was no endpoint listening at http://localhost:8002/UpdateManager/ProductManager/service that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.So start by looking at the inner exception, as it suggests, and make sure that the address and service are correct and running. 这篇关于可以接受这个消息。这通常是由错误的地址或SOAP操作引起的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-28 07:09