2008-10-20 81 views
2

编辑:修改标题和添加更新。
配置文件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是在同一个农场,应着眼于同一个数据库。

让我知道是否需要更多信息。

任何想法,将不胜感激!

谢谢。

+0

响应我敢打赌,在32和64位的问题是一个红色的鲱鱼和会看看用户配置文件存储。但你可能已经做到了。 – Nat 2008-10-20 21:16:22

+0

我们开始相信这是一只“红鲱鱼”。查看代码,以确切了解我们如何调用用户配置文件db。 – AdamBT 2008-10-20 22:12:36

回答

3

“字在大街上”是,你可以在同一个农场不混合32位和64位服务器(与数据库服务器除外)。

http://technet.microsoft.com/en-us/library/cc261700.aspx说:

You can deploy an Office SharePoint Server 2007 farm on a mix of 32-bit and 64-bit servers, provided that you maintain architecture homogeneity at each topology layer. For example, you should not mix 32-bit and 64-bit Web front-end (WFE) servers, but you may use 64-bit database servers in a farm with 32-bit WFE servers and application servers.

所以,你可以混合64位和32位,但显然不是32位和64位WFES。我不是说这是真的,我是说Technet说这是真的。 Technet通常比较保守,所以呃去问问你的MVP家伙。

+0

你能否进一步解释“街上的文字”?我们有一个微软“Sharepoint”MVP帮助我们设置了64位WFE。他似乎认为这没有问题。 – AdamBT 2008-10-20 18:59:06

1

彼得,非常感谢您的补充信息。我会问这个MVP。

这个webpart是唯一给我们提供64位WFE问题的东西。其他一切工作正常。我们有其他自定义代码(webparts,事件接收器,内容类型等),它们在64位模式下运行时没有问题。

感谢您的回复;我会发布MVP关于此的任何内容。

编辑:从MVP

They assume you are load balancing 32 and 64 in the same NLB and that wouldn't balance well. It is absolutely supported architectually, however. It should work.