WSPBuilder Error

In Visual Studio, while you try to build wsp using WSPBuilder, you receive an error message saying:

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
Created by Carsten Keutmann
GPL License 2007
Building the solution - please wait
Saving the Manifest.xml file
Creating the WSP file
Could not load file or assembly 'CabLib, Version=, Culture=neutral, PublicKeyToken=85376ef9a48d191a' or one of its dependencies. An attempt was made to load a program with an incorrect format.


Problem occurs when you try to use x86 version of WSPBuilder on x64 machine (usually happens on VMs).

This happens because you have a wrong cablib.dll (x86 instead of x64) in wsp builder’s installation directory. Get x64 cablib.dll and copy/paste it in the installation directory of wsp builder (overwrite the old cablib.dll), usually at C:\Program Files\WSPTools\WSPBuilderExtensions.

You can download x64 cablib.dll for WSPBuilder 1.0.5 from here:


This problem is resolved in the latest version i.e. WSPBuilder 1.0.6:

Hope this helps–


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: