Visual studio 无法在本地主机上正确发布Wcf服务

Visual studio 无法在本地主机上正确发布Wcf服务,visual-studio,web-services,wcf,iis,Visual Studio,Web Services,Wcf,Iis,我正在尝试在本地发布Wcf服务(Visual Studio 2013),我已在localhost中的某个地址上发布了该服务,但当我尝试使用其他项目连接到该服务时,“添加服务引用”窗口对我说“尝试在“”处查找服务时出错(详细信息)。” 正确使用我的Wcf服务的唯一方法是将其添加到解决方案中,但我认为这不是正确的方法 如果我单击“详细信息”,我将获得此消息: "There was an error downloading 'http://localhost:53700/AzureWebService

我正在尝试在本地发布Wcf服务(Visual Studio 2013),我已在localhost中的某个地址上发布了该服务,但当我尝试使用其他项目连接到该服务时,“添加服务引用”窗口对我说“尝试在“”处查找服务时出错(详细信息)。”

正确使用我的Wcf服务的唯一方法是将其添加到解决方案中,但我认为这不是正确的方法

如果我单击“详细信息”,我将获得此消息:

"There was an error downloading 'http://localhost:53700/AzureWebServiceTest/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
Impossibile stabilire la connessione. Rifiuto persistente del computer di destinazione 127.0.0.1:53700
Metadata contains a reference that cannot be resolved: 'http://localhost:53700/AzureWebServiceTest'.
There was no endpoint listening at http://localhost:53700/AzureWebServiceTest 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
Impossibile stabilire la connessione. Rifiuto persistente del computer di destinazione 127.0.0.1:53700
If the service is defined in the current solution, try building the solution and adding the service reference again."
更新:
有人能告诉我如何在本地发布一个Wcf服务,并在具有服务引用的其他项目上使用它吗?

打开Visual Studio的其他实例并执行应用程序,然后使用主体实例查找具有活动主机(服务实例的)中描述的metaaddres的服务。Et Voilá。

单击“详细信息”并研究错误。现在我将其添加到问题中。错误显示“无法连接到远程服务器”。请检查部署是否按预期进行。但问题是,我已正确配置Web服务,我只是简单地执行了“发布”。您的结果可能会有所不同,消息说没有服务器在该端口侦听。您是如何“发布到IIS Express”的?