Hi,
I was trying to enable publishing feature in sharepoint 2007, and i was getting this error:
“Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)“
The solution for this problem open stsadm tool and enable the following features:
stsadm -o activatefeature -filename publishing\feature.xml -url http://MyPortal -force
stsadm -o activatefeature -filename publishingresources\feature.xml -url http://MyPortal -force
stsadm -o activatefeature -filename publishingSite\feature.xml -url http://MyPortal -force
stsadm -o activatefeature -filename publishingweb\feature.xml -url http://MyPortal -force
stsadm -o activatefeature -filename publishinglayouts\feature.xml -url http://MyPortal -force
stsadm -o activatefeature -filename navigation\feature.xml -url http://MyPortal -force
Hope this helps :)
Regards,
Mostafa arafa
No comments:
Post a Comment