Friday, 26 June 2015

Publishing Feature activation failed. Exception: System.ArgumentException: Value does not fall within the expected range.

Today while activating publishing feature in Site Settings I was getting an error. When I checked log file using correlation id , it was showing unexpected error as:

Publishing Feature activation failed. Exception: System.ArgumentException: Value does not fall within the expected range.

Then i tried to activate feature using Powershell and it worked:

$siteUrl = "http://SharePoint:6435/"
$siteCollection = Get-SPSite $siteUrl
Enable-SPFeature "PublishingSite" -Url $siteCollection.Url -force
Enable-SPFeature "PublishingWeb" -Url $siteCollection.Url -force

Hope this helps.!!!!!!!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...