Questo errore:
Error occurred in deployment step 'Add Solution': Value does not fall within the expected range.
mi è capitato durante il deploy di una solution (*.wsp) per
SharePoint 2013 tramite
Visual Studio 2012.
L'errore era dovuto all'id di un content type scritto non correttamente.
In pratica avevo:
<ContentType ID="0X0100BD7F6215D15F4592B84B4EF78AF1BE21"
Name="HR"
Inherits="TRUE"
Version="0">
...
</ContentType>
l'errore era dovuto ai caratteri iniziali
0X dove la
X era scritta in
MAIUSCOLO anziché minuscolo
0x:
<ContentType ID="0x0100BD7F6215D15F4592B84B4EF78AF1BE21"
Name="HR"
Inherits="TRUE"
Version="0">
...
</ContentType>