编辑:修改标题和添加更新。
配置文件WebPart中的用户数据库错误
UPDATE: 我们不再相信这是一个64位的32位VS问题。我们发现,唯一看到这种情况的人是那些被农场政策定为“完全控制”的人。 (不作为系统帐户)一旦我们测试了常规用户,我们发现没有问题。从服务器场策略中删除“问题”用户并将其添加回去,修复除一个用户(同事开发人员:)以外的所有用户。
我们以2个32位WFE和一个32位应用服务器开始了我们的农场。我们决定将64位前端添加到我们的农场,而且大部分情况下,几乎所有的工作都正常。例外是访问用户配置文件数据库的自定义Web部件。适用于32位前端精细,但我们得到的64位前端出现以下错误:
User Not Found: Could not load profile data from the database.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Office.Server.UserProfiles.UserNotFoundException: User Not Found: Could not load profile data from the database.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UserNotFoundException: User Not Found: Could not load profile data from the database.]
Microsoft.Office.Server.UserProfiles.UserProfile.Load(SqlDataReader myReader, Boolean bFirstRead, Boolean bWssId) +930
Microsoft.Office.Server.UserProfiles.UserProfile.Load(SqlDataReader myReader) +64
Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount) +1507
Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf) +584
Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct) +80
Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName) +205
由于WFE是在同一个农场,应着眼于同一个数据库。
让我知道是否需要更多信息。
任何想法,将不胜感激!
谢谢。
响应我敢打赌,在32和64位的问题是一个红色的鲱鱼和会看看用户配置文件存储。但你可能已经做到了。 – Nat 2008-10-20 21:16:22
我们开始相信这是一只“红鲱鱼”。查看代码,以确切了解我们如何调用用户配置文件db。 – AdamBT 2008-10-20 22:12:36