0

我正在尝试发布我的 asp.net Web 应用程序并且它可以工作,但问题是当我使用我的搜索引擎在数据库中搜索时出现错误显示。

也许我还需要发布DataServiceReference?但我怎样才能发布这个DataServiceReference

错误:

There was no endpoint listening at http://localhost:8732/Design_Time_Addresses/DataService/Service1/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

这是我的Web.Config

<client>
  <endpoint address="http://localhost:8732/Design_Time_Addresses/DataService/Service1/" 
            binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1" 
            contract="DataServiceReference.IService1" 
            name="WSHttpBinding_IService1">
    <identity>
      <dns value="localhost" />
    </identity>
  </endpoint>
</client>

我尝试更改localhost:8732为,10.10.*.***但仍然无法正常工作。

也许这可以帮助...

这是我的项目图片:

在此处输入图像描述

这是我用来发布我的项目的。

在此处输入图像描述

4

1 回答 1

0

如果您有数据服务,在您的解决方案中,您也必须将其发布到服务器,并将端点地址更改为您发布 WCF 服务的位置。

于 2014-09-17T08:54:51.610 回答