Showing posts with label WSPBuilder and extnsions for Visual Studio 2008. Show all posts
Showing posts with label WSPBuilder and extnsions for Visual Studio 2008. Show all posts

Thursday, July 29, 2010

WSP Builder: ERROR: 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.

PROBLEM:

I'm running the latest release of WSPBuilder and extnsions for Visual Studio 2008. I installed the MSI. I am running on a Windows Server 2003 system with SharePoint on it.

When I was trying to build the WSP then I was getting below error:

"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."

I searched for cablib.dll in the WSPBuilder folder, found two versions of cablib.dll one is marked as x64 and x86.

Solution:

I copied the cablib.dll from the "C:\Program Files\WSPTools\WSPBuilderExtensions\Resources\x86"

directory and paste it in the root "C:\Program Files\WSPTools\WSPBuilderExtensions\"

Then everything works fine.

Use the ‘Comments’ form to share your thoughts.