Archive for August, 2010
Error occurred in deployment step Add Solution: Value does not fall within the expected range
Posted by Jake in SharePoint on August 9, 2010
A SharePoint 2010 solution I was working on contained several different types projects (MasterPage, ContentTypes, EventReceivers). At one point, I started getting this error: “Error occurred in deployment step Add Solution: Value does not fall within the expected range.”
By unloading projects I narrowed it down to my ContentType feature. The ID of the content type had a typo (I left a closed brace sign at the end of the ID). While googling for this error, there wasn’t an exact match for my typo, rather it was the method to isolate the problem, which is to unload projects and features until I found the culprit.
<ContentType ID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2006748130EC3DB064584E219954237AF3900F7AEFF
AB848C45AE85AC577F52131053}"
Name="Three Columns Main"
Group="My Pages"
Description="Main Page with three columns"
Version="0"
Inherits="TRUE"
Overwrite="TRUE">
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" />
<FieldRef ID="{888D470D-BF80-4DF2-A2D6-72EBDFF90DE1}" Name="PortalHeaderText" />
</FieldRefs>
</ContentType>