Sunday, May 4, 2014

Error: System.ArgumentException: Value does not fall within the expected range.


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

5 comments:

  1. Thank you! Helped me to Resolve my Issue

    ReplyDelete
  2. I pasted the entire command in SharePoint Management Shell. I get this error messages. Can I get your email address so I can send you a screenshot? Mine is kawha.yang@microhealthllc.com

    ReplyDelete