When i was trying to activate publishing feature in sitemanager am getting unexpected error.
When i checked log file with corelation id, i have found System.ArgumentException: Value does not fall within the expected range. And also i found dependencies for feature 'PublishingWeb'.
Publishing Feature activation failed. Exception: System.ArgumentException: Value does not fall within the expected range.
Feature Activation: Failed to ensure feature dependencies for feature 'PublishingWeb' (id: '94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb'), exception thrown: System.ArgumentException: Value does not fall within the expected range.
Then i try to activate feature using powershell command or Sharepoint Management Shell with force.
Here the commands
$siteUrl = "http://ukreddy:3456/"
$siteCollection = Get-SPSite $siteUrl
Enable-SPFeature "PublishingSite" -Url $siteCollection.Url -force
Enable-SPFeature "PublishingWeb" -Url $siteCollection.Url -force
Excellent, thank you !
ReplyDeleteThank you! Helped me to Resolve my Issue
ReplyDelete