1
我的WCF项目是好的,没有错误,我尝试浏览SVC文件,它工作正常。 但当我添加此WCF引用,它抛出错误:添加WCF服务引用时出错?
There was an error downloading 'http://MyIPAddress/BKKService/BService.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://MyIPAddress/BKKService/BService.svc'.
There was no endpoint listening at http://MyIPAddress/BKKService/BService.svc that could accept the message.
请帮我解决这个问题。
这是我的web.config文件
<services>
<service name="BKKService.BService">
<endpoint address="BKKService" binding="basicHttpBinding"
bindingConfiguration="basicHttp" contract="BKKService.IBService"/>
<host>
<baseAddresses>
<add baseAddress="http://MyIPAddress/BKKService/BService.svc"/>
</baseAddresses>
</host>
</service>
</services>
对不起,我是这个领域的新手,请根据我的代码清楚地告诉我。请.. – RobinsonIT