在http // localhost上没有可以接受该消息的端点

时间:2016-01-13 08:26:13

标签: c# wcf

我的机器中有两个项目。在第一个应用程序中,我已经创建了WCF服务,只有我已经测试过才能正常工作,在主机按下Ctlr + F5显示消息后,在控制台应用程序中托管主机启动@ 13-Jan-16 12:28:01 PM ...

在第二个应用程序中,我试图添加显示错误的添加服务引用....

<body>
  <header>
    <a href="treeHouse.html" id="logo">
      <h1>Hovhannes Mkoyan</h1>
      <h2>Designer</h2>
    </a>
    <nav>
      <ul>
        <li><a href="treeHouse.html" class="selected">Portfolio</a>
        </li>
        <li><a href="about.html">About</a>
        </li>
        <li><a href="contact.html">Contact</a>
        </li>
      </ul>
    </nav>
  </header>
</body>

App.config:主机应用程序......

There was an error downloading 'http://localhost:8035/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8035
Metadata contains a reference that cannot be resolved: 'http://localhost:8035/'.
There was no endpoint listening at http://localhost:8035/ 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:8035
If the service is defined in the current solution, try building the solution and adding the service reference again. 

0 个答案:

没有答案