我是一名学生,今天在课堂上,当我尝试使用 WCF 测试客户端运行项目时,视觉 Sutdio 2019 向我检索到此错误:
Error: Cannot obtain Metadata from http://localhost:54417/ServiceBookStore.svc
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.
For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: http://localhost:54417/ServiceBookStore.svc
我和我的老师试图解决这个问题,我寻找过解决方案,但我没有找到太多东西。我尝试卸载 VS 2019 但效果不太好
打印错误:
感谢您的帮助!
我刚刚在设置新的 Windows 11 虚拟系统时遇到了同样的问题。对我来说,解决方案是通过 Windows 功能启用 IIS (https://www.how2shout.com/how-to/how-to-enable-iis-internet-information-services-on-windows-11.html )