我添加了对Sharepoint FBA站点的authentication.asmx Web服务的引用。我有以下代码:
Authentication auth = new Authentication();
LoginResult lResult = auth.Login("******", "******");
Login方法抛出异常,如下所示:
System.Web.Services.Protocols.SoapException:服务器无法执行 处理请求。 ---> System.ServiceModel.FaultException`1 [System.ServiceModel.ExceptionDetail]: 无法检索IIS设置。参数名称:context at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(消息 回应) Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst,RequestSecurityTokenResponse& rstr)at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst)at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(URI context,Boolean bearerToken,SecurityToken onBehalfOf,SecurityToken actAs,SecurityToken delegateTo,SPRequestSecurityTokenProperties 物业) Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(URI context,String membershipProviderName,String roleProviderName, String username,String password,SPFormsAuthenticationOption options) 在 Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(URI context,String userName,String password)at Microsoft.SharePoint.SoapServer.Authentication.Login(String username, 字符串密码)
我正在使用SQL Membership provider来设置FBA。