Tuesday, January 13, 2009

Value does not fall within the expected range while activating feature in MOSS using stsadm tool

While i tried to implement a custom feature in MOSS, i ended up with the error message "Value does not fall within the expected range".

What has happened is i tried the implementation of feature in wrong sequence, and i received message saying the dependendent feature has to be activated first. Thereafter i activated the other one and then tried this later and got the above message.

The solution use the argument -force. And i beleive that the initial activate attempt haults the process halfway and hence we need to force the activation process.

Here is the full command

ststadm.exe -o activatefeature -filename \feature.xml -url "http://localhost" -force

That s it !

No comments: