Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am getting the following error in the event log when I activate the 'Office Sharepoint Server Publishing' feature:

Event log message was: 'Failed to create the 'Documents' library.'. Exception     
was: 'System.NullReferenceException: Object reference not set to an instance of an  
object. at  Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.
CreateDocumentsDocumentLibrary (SPList approvalTaskList)'

The following errors were picked up from the ULS viewer tool (I've had to shorten the errors for brevity):

(0x1EE4)    0x25C8  CMS Publishing Provisioning 5rob    Critical    Event log message was: 'Failed  
to create the 'Documents' library.'. Exception was: 'System.NullReferenceException: Object reference not   
set to an instance of an object.

(0x1EE4)    0x25C8  CMS Publishing Provisioning 75ot    Unexpected  Publishing Feature activation 
failed. Exception: Microsoft.SharePoint.SPException: Provisioning did not succeed. Details: Failed to 
create  the 'Documents' library. 

(0x1EE4)    0x25C8  Windows SharePoint Services Feature Infrastructure  88jm    High    Feature 
receiver  assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, 
PublicKeyToken=71e9bce111e9429c',

(0x1EE4)    0x25C8  Windows SharePoint Services General 72by    High    Feature Activation: Threw an 
exception, attempting to roll back.  Feature 'Publishing' (ID: '22a9ef51-737b-4ff2-9346-694633fe4416'). 

(0x1EE4)    0x25C8  Windows SharePoint Services General 8grz    High    The feature '94c94ca6-b32f-4da9-
a9e3-1f3d343d7ecb' depends on feature '22a9ef51-737b-4ff2-9346-694633fe4416' which failed to activate:

(0x1EE4)    0x25C8  Windows SharePoint Services General 75fg    High    Exception was thrown while  
ensuring dependencies met for feature 'PublishingWeb' (id: 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb)

(0x1EE4)    0x25C8  Windows SharePoint Services Feature Infrastructure  8e0j    High    Feature 
Activation: Failed to ensure feature dependencies for feature 'PublishingWeb' (id: '94c94ca6-b32f-4da9-  
a9e3-1f3d343d7ecb')

(0x1EE4)    0x25C8  Windows SharePoint Services General 8dzz    High    Exception Type: 
System.NullReferenceException  Exception Message: Object reference not set to an instance of an object. 
share|improve this question
2  
Check the ULS logs on the server that you are running the feature activation on. I suggest using the excellent ULS Viewer tool archive.msdn.microsoft.com/ULSViewer. Update your answer with any relevant entries. – Sam Huggill Nov 10 '11 at 10:54
@SamHuggill I've updated my question. Thanks for the link to the tool, it's great! – Imran Azad Nov 10 '11 at 14:10
Have you manually created a 'Documents' Document Library in the site? – James Love Nov 10 '11 at 14:17
I tried that however it always creates a Document Library called 'Documents1' – Imran Azad Nov 10 '11 at 14:25
Are you trying to activate the feature at the Site or Site Collection level? – Sam Huggill Nov 10 '11 at 14:42
show 6 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.