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 メンバーシップを多用していましたが、コミュニティ サーバー サイトについて詳しくありません。

質問のSOリンクによると、問題はユーザーがテーブルにcs_Usersないことです(または他のテーブルである可能性があります)。

1 - これらの孤立した行を見つける必要があります。このようなもの -

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

2 - 次に、それらを削除するか、何かをする必要があります。

于 2013-04-17T15:58:59.577 に答える