0

我有一个 SharePoint 2010 Web 应用程序,我想使用自定义成员资格提供程序在扩展的 Internet 区域中进行身份验证;但是,我最终收到以下错误:

System.ServiceModel.FaultException`1 was unhandled by user code
  Message=Cannot get Membership Provider with name xxx. The membership provider 
  for this process was not properly configured. You must configure the membership 
    provider in the .config file for every SharePoint process.
  Source=Microsoft.IdentityModel
Action=http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher/fault
  StackTrace:
       at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response)
       at     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)
   at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, String membershipProviderName, String roleProviderName, String username, String password)
   at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri context, String userName, String password)
   at Fellowes.Commerce.Site.Layouts.Fellowes.Commerce.Site.Authentication.SignInControl_Authenticate(Object sender, AuthenticateEventArgs e)
   at System.Web.UI.WebControls.Login.AttemptLogin()
   at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:

我已将成员信息放入默认区域配置、Internet 区域配置、令牌服务配置和管理中心配置中,但它仍然抱怨我在每个 SharePoint 进程的配置中都没有成员提供程序。我错过了另一个过程吗?收到此错误的其他所有人都错过了在令牌服务中添加条目,但我已经在那里添加了它。我难住了!

4

2 回答 2

0

我在设置 FBA 时遇到了同样的问题。我基本上是重新开始,一步一步地关注这篇博文,一切都解决了。我发誓我自己做了同样的事情,对我来说仍然是个谜。

于 2011-08-25T21:29:43.320 回答
0

所以事实证明,我没有启动位于Central Administration > Manage Services On Server的对 Windows 令牌服务的声明。一旦我打开它,它就开始工作了。按照马特的建议设置 SQLMembershipProvider 让我指出了正确的方向,但它并没有成为最终的解决方案。

于 2011-08-26T13:15:38.023 回答