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 ==========
WSPBuilder
Version: 0.9.8.0830
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=6.9.26.0, Culture=neutral, PublicKeyToken=85376ef9a48d191a' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Fix:

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:

http://wspbuilder.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30858

Update:

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

http://wspbuilder.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30858

Hope this helps–

Advertisements

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: