我的团队使用forms-authentication构建内部托管的ASP.NET MVC网站。如何在没有表单身份验证的虚拟目录中公开WCF服务?
我想在与ASP.NET MVC网站相同的虚拟目录中托管WCF服务。
我的问题:
How do I make the WCF service freely accessible, that is without forms-authentication.
我目前的困境是:
- 我可以访问.SVC,看到了WSDL的信息,如果我第一次通过表单的身份验证与Web浏览器进行身份验证。
- 但是当我尝试访问与wcfTestClient.exe WCF服务,我得到以下错误:
Error: Cannot obtain Metadata from http://localhost/Services/MyService.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