Article ID: 944106 - Last Review: October 29, 2007 - Revision: 1.0 When you programmatically use the SPUser.RegionalSettings object on a server that is running Windows SharePoint Services 3.0, the value of the returned object is NULLSYMPTOMSWhen you programmatically use the SPUser.RegionalSettings object on a server that is running Microsoft Windows SharePoint Services 3.0, the value of the returned object is NULL. CAUSEThis problem occurs if the user who is defined in the object is not the same user who is logged on to the server. By design, the SPUser.RegionalSettings object is for the current user. Therefore, the current user's regional settings are reported even when you are retrieving the settings of other users. WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this problem, use the following code. This code uses a new SPSite object to create a separate user context.
| Article Translations
|
Back to the top
