问题描述
当我运行项目时,此错误显示请帮助我
错误:无法从http:// localhost:50423 / Service1.svc获取元数据如果这是您有权访问的Windows(R)Communication Foundation服务,请检查您是否已在指定地址启用元数据发布。有关启用元数据发布的帮助,请参阅http://go.microsoft.com/fwlink/?LinkId=65455上的MSDN文档.WS-Metadata Exchange错误URI:http:// localhost:50423 / Service1.svc元数据包含无法解析的引用:'http:// localhost:50423 / Service1.svc'。在http:// localhost:50423 / Service1.svc上没有可以接受该消息的端点。这通常是由错误的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。无法连接到远程服务器无法建立连接,因为目标计算机主动拒绝它127.0.0.1:50423HTTP GET错误URI:http:// localhost:50423 / Service1.svc下载'http:// localhost时出错:50423 / Service1.svc。无法连接到远程服务器无法建立连接,因为目标计算机主动拒绝它127.0.0.1:50423
when i run the project this error shows please help me
Error: Cannot obtain Metadata from http://localhost:50423/Service1.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: http://localhost:50423/Service1.svc Metadata contains a reference that cannot be resolved: 'http://localhost:50423/Service1.svc'. There was no endpoint listening at http://localhost:50423/Service1.svc 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 server No connection could be made because the target machine actively refused it 127.0.0.1:50423HTTP GET Error URI: http://localhost:50423/Service1.svc There was an error downloading 'http://localhost:50423/Service1.svc'. Unable to connect to the remote server No connection could be made because the target machine actively refused it 127.0.0.1:50423
推荐答案
Go to Properties of the Web service project --> click on Web tab --> In Servers section --> Check Specific port and then assign the standard port number by which your main project is calling the web service.
这篇关于关于wcf休息全面服务的错误请帮帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!