ULS: System.NullReferenceException: Object reference not set to an instance of an object.

Nov 15, 2011 at 10:13 AM

at Microsoft.MCSUK.SPSiteDirectory2010.ScanJob.Execute.

Solution deployed and activated OK. Followed the installation guide on a SharePoint Foundation 2010 (with Claims Based authentication)...

Farm:

-> One Blank Site Collection for the "Site Directory 2010" feature.

-> One Team Site Collection with a couple of test sites - no results in Site Directory list...

No other errors or problems encountered.

Please advice...

Tom Gullberg

Coordinator
Nov 15, 2011 at 10:19 AM

Hi,

Are you seeing any detailed errors in your ULS logs? If so please share and I'll look into it.

Regards

Nov 15, 2011 at 10:37 AM
Edited Nov 15, 2011 at 10:41 AM
Hi
This is what I get in the ULS Viewer:


Nov 15, 2011 at 10:40 AM

Repeated exceptions in ULS log:

11/15/2011 12:21:00.88 OWSTIMER.EXE (0x0E30)                   0x08C8 SharePoint Foundation         Database                       4ohp High     Enumerating all sites in SPWebApplication Name=SharePoint FEDSP. c4d25da2-27ee-4b50-97b0-379435aa813f

11/15/2011 12:21:00.88 OWSTIMER.EXE (0x0E30)                   0x08C8 SharePoint Foundation         Database                       4ohq Medium   Site Enumeration Stack:    at Microsoft.SharePoint.SPBaseCollection.GetEnumerator()     at Microsoft.MCSUK.SPSiteDirectory2010.ScanJob.Execute(Guid targetInstanceId)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)   c4d25da2-27ee-4b50-97b0-379435aa813f

11/15/2011 12:21:00.88 OWSTIMER.EXE (0x0E30)                   0x08C8 Unknown                       SPSiteDirectory2010           100 Unexpected System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.MCSUK.SPSiteDirectory2010.ScanJob.Execute(Guid targetInstanceId)   at Microsoft.MCSUK.SPSiteDirectory2010.ScanJob.Execute(Guid targetInstanceId) c4d25da2-27ee-4b50-97b0-379435aa813f

11/15/2011 12:21:00.88 OWSTIMER.EXE (0x0E30)                   0x08C8 Unknown                       SPSiteDirectory2010           100 Unexpected c4d25da2-27ee-4b50-97b0-379435aa813f

11/15/2011 12:21:00.88 OWSTIMER.EXE (0x0E30)                   0x08C8 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Timer Job Microsoft.MCSUK.SPSiteDirectory2010 Scan Job). Execution Time=24.7478380632175 c4d25da2-27ee-4b50-97b0-379435aa813f

Nov 15, 2011 at 11:07 AM

Looks like the problem is my Team Site Collection - created another Site Collection and tried the Site Directory on this one - and everything works OK!

TomG

Coordinator
Nov 15, 2011 at 11:27 AM

Hi tom,

thanks for the update. I'm glad it is working for you.