Error occurred in deployment step ‘Add Solution’: Value does not fall within the expected range.
I got this error when I deploy a new content type into SharePoint2010.This error message is not very helpful after a few hours of hard work, I find out there is a dash(-) in my contentID.It happen when I generate GUID using visual studio tool and copy it to the ID and forgot to delete the dash.
After correct this, I press deploy again, it works like charm. If you got this error double-check your contentID. If you are not quite sure what is a
Valid contentTypeID, check the MSDN documentation here.