Nov 17 2009

WSPBuilder Project Migration Errors

Published by gringod at 12:26 pm under .NET, Programming

Today I tried migrating a Visual Studio WPSBuilder project from one machine to another.  The originating machine was 32bit Windows Server 2008 the destination machine was 32bit Windows Sever 2003 Standard.

To migrate the project I simply zipped the solution folder and copied it across to the destination machine, unzipped and opened in Visual Studio.

However, when I came to build the SharePoint solution file using the Tools -> WPSBuilder -> Build WSP, I got the following error in the output window:
“Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection”

When Googling the the error message the only result was on the WSP Builder CodePlex site and was about 64bit versions of the Cablib.dll assembly.  As neither of my machines is 64bit I figured this wasn’t the issue.

I’m not sure exactly what was causing the problem but this was the solution:

  • Open the project folder in Explorer
    • Delete the bin folder
    • Delete the obj folder
    • Delete the wsp file in the project folder.
  • Re-open the project in Visual Studio
    • Compile the project
    • Build the WSP (Tools -> WPSBuilder -> Build WSP)

After this everything was back to normal.

6 responses so far

6 Responses to “WSPBuilder Project Migration Errors”

  1. Daveon 17 Nov 2009 at 3:00 pm

    Erm, so build clean then. Wow, tricky.

  2. gringodon 17 Nov 2009 at 3:04 pm

    Nope, I tried Project -> clean and Solution -> clean, that didn’t fix it. Also tried project & solution re-build.

  3. Энергетикon 10 Dec 2009 at 6:09 am

    Ценные рекомендации, беру на заметку

  4. tinky04on 03 Feb 2010 at 5:46 pm

    It worked for me! Thanks!

  5. Vladislav36on 16 Mar 2010 at 11:06 pm

    Скачать софт

  6. Vladislav54on 20 Mar 2010 at 9:41 pm

    свой дом

Trackback URI | Comments RSS |

Leave a Reply