我的團隊使用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