VSeWSS: Value does not fall within the expected range.

On occasion, particularly if you’re moving files around or working on the structure of your project inside Visual Studio 2008, you’ll try to deploy your SharePoint project using VSeWSS 1.3 (March 2009 CTP) and get the following error:

Value does not fall within the expected range.

It’s cryptic and unhelpful. What value? What expected range? Experience has taught me that VSeWSS can only be deblogged, not debugged.

Anyway, this error usually means there is a file listed in the solution (as in WSP solution, not Visual Studio solution) manifest that doesn’t exist on the filesystem. Maybe SVN sucks (it does), or maybe you clicked the wrong button. Head down that path and you’ll likely find the problem.

A dead obvious giveaway is shown in this image.  The little ‘hazard’ icon indicates a file included in the project is missing from the filesystem.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">