Home > SharePoint 2010 > Error occurred in deployment step ‘Add Solution’: Value does not fall within the expected range.

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.

 

Advertisements
Categories: SharePoint 2010
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: