简体   繁体   English

没有端点监听

[英]No Endpoint listening

There was no endpoint listening at http://api/APIWCF.svc/soap that could accept the message. http://api/APIWCF.svc/soap上没有侦听终结点的端点可以接受该消息。 This is often caused by an incorrect address or SOAP action 这通常是由错误的地址或SOAP操作引起的

I've created a new website in IIS called API, I assigned it to the folder of where my application is. 我在IIS中创建了一个名为API的新网站,并将其分配到应用程序所在的文件夹中。 But when I run it, it gives me error mentioned above. 但是当我运行它时,它给了我上面提到的错误。

What I've tried: 我试过的

  • Deleted the website and re-added it in IIS. 删除该网站,然后将其重新添加到IIS中。

  • I set my project to run under local IIS under web properties. 我将项目设置为在Web属性下的本地IIS下运行。

  • It's running under the current page. 它正在当前页面下运行。

  • I changed the virtual directory. 我更改了虚拟目录。

  • I checked the webconfig folder, which is as follows: 我检查了webconfig文件夹,如下所示:

     <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/> 

Have I done something wrong in IIS? 我在IIS中做错了什么吗? I cant figure it out. 我不知道。

change the Url in the client endpoint to have the host name 更改客户端端点中的Url以具有主机名

<endpoint address="http://[your host name]api/APIWCF.svc" 
            binding="basicHttpBinding"
            bindingConfiguration="BasicHttpBinding_APIWCF"
            contract="Bettingworld.JuiceAPIWCF" 
            name="BasicHttpBinding_APIWCF"/>
</client>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM