在会员商店中找不到的用户用户名不存在

时间:2013-04-17 14:48:33

标签: asp.net-membership community-server

在我们的社区服务器站点中,当我导航到UserList.aspx页面时,每次都会出现以下错误:User Not Found, The user you requested cannot be found.

当我检查事件日志时,我看到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
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)

另外,我seen this post,但如果这是我的问题,我不确定我需要做什么。

1 个答案:

答案 0 :(得分:0)

首先,我不熟悉社区服务器站点,尽管我广泛使用ASP.Net Membership。

根据您问题中的SO链接,问题是cs_Users表(或可能是其他表)中缺少用户。

1 - 你需要找到那些孤立的行。这样的事情 -

SELECT * FROM aspnet_Users WHERE UserId NOT IN (SELECT UserId FROM cs_Users)

2 - 然后您需要删除它们或执行某些操作。