托管并运行,但无法从客户端创建服务参考

时间:2019-02-14 09:57:57

标签: wcf

我有一个控制台应用程序,该应用程序通过WCF的ServiceHost对象托管服务,但是从客户端无法添加服务引用,并且出现以下错误:

The URI prefix is not recognized.
Metadata contains a reference that cannot be resolved: 
'net.tcp://localhost:8001/Alu'.
There was no endpoint listening at net.tcp://localhost:8001/Alu 
that could accept the message. This is often caused by an incorrect address 
or SOAP action. See InnerException, if present, for more details.
If the service is defined in the current solution, try building the solution 
and adding the service reference again.

我也已经在控制面板中激活了WCF Non-Http内容。应该在哪里解决这个问题?

0 个答案:

没有答案
相关问题