SharePoint: "Failed to extract cab file in solution"

I get the error message “Could not extract cab file in solution” when I try to deploy my wsp using stsadm -o addsolution -filename ...

I open wsp as a booth and check that there are no duplicate files there, as I understand that this can sometimes cause this problem.

The problem only started when I tried to include a custom field type as part of my solution, for this I added the following to ddf

.. \ CustomFields \ ShortMonth \ ShortMonthControl.ascx .. \ CONTROLTEMPLATES \ ShortMonthControl.ascx

.. \ CustomFields \ ShortMonth \ fldtypes_shortmonth.xml .. \ XML \ fldtypes_shortmonth.xml

and

<TemplateFiles >

<TemplateFile Location="CONTROLTEMPLATES\ShortMonthControl.ascx"/ >

<TemplateFile Location="XML\fldtypes_shortmonth.xml"/>

</TemplateFiles>

to the manifest.

I tried to return it only to ascx links in both, but it does not see to help.

Any ideas?

+7
deployment sharepoint
source share
8 answers

Do you need a ".." in your DDF?

+2
source share

Make sure you do not have special characters in your files. Perhaps they penetrated as a result of copy-paste. For example, the way that your sample code is rendered on this page has (`), which should not be.

+5
source share

The problem is more likely due to incorrect names for the files that you deploy in the hive SharePoint 14 folder. If you use brackets (',') in the file names or special characters such as @ in the file names, this problem will occur.

Remove it and the problem should go away.

+1
source share

I just know that I had the same problems, and I think I noticed it somewhere (I will check it tomorrow and send it here if I find anything). I just can’t remember how I fixed it right now (maybe it was a slash in the wrong way / against \ .. hmm). I did a google search (which I think you did too). Found this (check):

http://www.codeplex.com/wspbuilder/WorkItem/View.aspx?WorkItemId=7385

0
source share

List Instance Name I had "MyListInstance (List Instance)". I removed the brackets from the name and expanded it without any problems.

0
source share

Check the .ddf file for a line that might have been accidentally duplicated. Apparently, sharepoint doesn't like this!

0
source share

Rebooting resolved the "Failed to extract cab" file problem. Some updates were installed and a reboot was required. It was not clear that this was related, but it helped.

0
source share

Something would go during the build of the WSP. Restore WSP and Deploy - it should work fine.

0
source share

All Articles