我写了一个基于webhttpbinding的wcf service,然后再iis上把它发布了,当我想在另外一个web application里面添加对这个service的reference的时候却不行,错误如下:
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://localhost:91/HelloWorld.svc'.
There was no endpoint listening at http://localhost:91/HelloWorld.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.
请问一下,这个是我配置上有问题还是根本就不能添加啊?
配置问题吧!我前几个星期也在这块问题上折腾了好久~!
因为webhttp模式不支持“vs->右键->添加服务引用”模式