0

在我们的社区服务器站点中,当我导航到 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)

另外,我看过这篇文章,但如果这是我的问题,我不确定我需要做什么。

4

1 回答 1

0

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

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

1 - 您需要找到那些孤立的行。像这样的东西-

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

2 - 然后你需要删除它们或做一些事情。

于 2013-04-17T15:58:59.577 回答