无法让 WCF 测试客户端工作 [英] Cannot get the WCF Test Client to work
问题描述
我正在使用 WCF 测试客户端.当我转到添加服务"并选择要添加的服务时,我收到此消息,
I am using the WCF Test Client. When I go to 'add service' and select a service to add I get this message,
未找到程序集 Microsoft.ApplicationServer.Hosting,版本 1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35.重新安装程序集或 Visual Studio.应用程序无法继续,将退出.
Assembly Microsoft.ApplicationServer.Hosting, Version 1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 was not found. Reinstall the assembly or Visual Studio. The application cannot continue and will exit.
我使用的服务是在网络上,即它不是在我的机器上本地托管.它也在使用 https.
The service I am using is on the web, i.e. it is not being hosted locally on my machine. It is also using https.
有什么想法吗?
推荐答案
您应该重新安装 Microsoft.ApplicationServer.Hosting
(或 Visual Studio),因为缺少此程序集.这与web服务无关,没有安装消费服务的程序集.
You should reinstall the Microsoft.ApplicationServer.Hosting
(or Visual Studio), as this assembly is missing. This has nothing to do with the web service, the assembly to consume a service is not installed.
这篇关于无法让 WCF 测试客户端工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!