MOSS and Solution deployment: Problems with the cab file

Published 06 February 07 07:10 AM | jannemattila 

Solution deployment is really powerful way to deploy your customization to the customer environment. However I encountered small issue that you need to be aware. Again I had working solution that I have installed and upgraded few times. But when I added a lot of new files to my solution I ran into problems (somehow this kind of things just happen to me... am I the only one?).

stsadm –o upgradesolution ...

Failed to extract the cab file in the solution.

And then I debugged my solution files and noticed that I had scandinavian letters (ä,ö,å etc.) in my filenames. In this exact case I had one file that had 'ö' in it's name and it resulted to the error above. I tested my cab file (renamed it from .wsp to .cab) with explorer and it displayed filenames inside the cab file correctly. So my MakeCab.exe wasn't the problem. So in order to fix this problem I just renamed my file (and changed the references pointing to it) and created the package again. After that solution upgrade worked normally.

So clearly this indicates that you should avoid using any special chars in your filenames since it could cause you problems at the solution deployment.

Anyways... Happy hacking!

J

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Luciano said on February 6, 2007 3:24 AM:

ROTFL, if you want maximum portability keep the 8.3 file name RULE!!!

# jannemattila said on February 8, 2007 1:39 AM:

Hi Luciano!

Sorry for the delayed comment, but I have been on the road.

I still disagree with you 8.3 rule, since according to that you couldn't deploy .ASPX files. And that is just normal deployment stuff. Actually the deployment works pretty much with every filename... except those special characters. And I have tested with longer filenames and that doesn't create any problems.

This is just one small issue that you need to keep in mind when working with your solutions.

J

# crapmoss said on March 10, 2007 11:19 PM:

it seems if dds file contains mismatched ".Set DestinationDir" and file names, this error happens as well.

# Obfuskater said on June 24, 2009 9:07 PM:

I was amazed to discover even brackets () can cause this error, as well as ^ and ~.

Brackets?! Unbelievable!

# Wonder said on September 9, 2009 10:37 AM:

I was facing the same problem. I checked and didn't find any special characters. I recycled teh Apppools and then it started working fine!

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker