Value does not fall within the expected range error.


Recently when I was trying to deploy SharePoint solution with vs2008  and VSeWSS 1.3 I got this cryptic error which made it difficult to identify the cause of the error due to its cryptic nature. After going thought the solution files in detail It worked out that you get this error when you are missing any files in the VS2008 solution which are referenced by the manifest.xml file.


The missing file was referenced by the manifest.xml file inside the VSeWSS  “pkg”  folder as shown below.


After the placing the missing file in the file system the deployment succeeded as expected.