Asp.net membership 在成员资格存储中找不到的用户用户名不存在
在我们的社区服务器站点中,当我导航到UserList.aspx页面时,每次都会出现以下错误:找不到用户,找不到您请求的用户 检查事件日志时,我看到asp.net警告如下:Asp.net membership 在成员资格存储中找不到的用户用户名不存在,asp.net-membership,community-server,Asp.net Membership,Community Server,在我们的社区服务器站点中,当我导航到UserList.aspx页面时,每次都会出现以下错误:找不到用户,找不到您请求的用户 检查事件日志时,我看到asp.net警告如下: Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 4/17/2013 Time: 9:39:43 AM User: N/A Com
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 4/17/2013
Time: 9:39:43 AM
User: N/A
Computer: SV3369
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/17/2013 9:39:43 AM
Event time (UTC): 4/17/2013 2:39:43 PM
Event ID: f121eb3cd0a847b2a53972a09f802235
Event sequence: 11116
Event occurrence: 1072
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/8022/ROOT-1-130105941980617500
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\wisdomresearch.org\wwwroot\
Machine name: SV3369
Process information:
Process ID: 4148
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: CSException
Exception message: User Username not found in membership store does not exist.
Request information:
Request URL: http://wisdomresearch.org/themes/basic/Arete/UserList.aspx?interest=European+History
Request path: /themes/basic/Arete/UserList.aspx
User host address: 173.199.116.83
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 8
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at CommunityServer.Users.AddMembershipDataToUser(UserSet users)
at CommunityServer.Users.GetUsers(UserQuery query, Boolean cacheable)
at Arete.Common.GetGlobalUsersTable()
at PageBase.GetUsersTableFromCache()
at Themes_basic_Arete_userlist.BindUsers()
at Themes_basic_Arete_userlist.ExecuteSearch()
at Themes_basic_Arete_userlist.Page_Load()
at System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
另外,我也有,但我不确定如果这是我的问题,我需要做什么。首先,我不熟悉社区服务器站点,尽管我广泛使用ASP.Net成员资格 根据您问题中的SO链接,问题在于cs_users表中缺少用户,或者可能是其他表中的用户 1-您需要找到那些孤立的行。像这样的-
SELECT * FROM aspnet_Users WHERE UserId NOT IN (SELECT UserId FROM cs_Users)
2-然后你要么删除它们,要么做点什么。谢谢你的建议。我运行了您建议的查询,并对其进行了修改以检查反向,但它们没有返回任何差异。也请检查此项,从cs_用户中选择*,其中UserId不在SELECT UserId中,从aspnet_用户中选择UserId,也可能在其他具有UserId的表中,特别是UserList.aspx查询的表中。我也尝试了此项,以及其他一些表,如成员表。还是什么都没找到。我想我只需要继续找。感谢您对这场胜利的帮助和投入。