This project is read-only.

Another Object reference not set to an instance of an object

Sep 15, 2009 at 6:13 PM

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN>C:\LOS.SP.CleanOrphanedUsers.exe -site -testmode
Object reference not set to an instance of an object.

   at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_m_Site()
   at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_IsSiteAdmin()
   at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext, Boolean IgnoreUserPrivacy, Boolean backwardCompatible)
   at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext)
   at LOS.SP.CleanOrphanedUsers.Program.BeginCleaning()

Running it on the same server as where the site exists. WSS 3.0 enivronment.


- Jason

Sep 18, 2009 at 5:56 PM

I tested this on my MOSS instance and wasn't able to reproduce an error. I have to rebuild my WSS machine before I can test there. What version of the .NET framework do you have? 2.0, 3.0, or 3.5?

Jan 28, 2010 at 5:17 PM

I am also getting this error on WSS.