SharePoint: "Failed to extract the cab file in the solution"
Asked Answered
M

9

8

I'm receiving a "Failed to extract the cab file in the solution" error when I try to deploy my wsp using stsadm -o addsolution -filename...

I've open the wsp as a cab and checked that there are no duplicate files in there as I understand that can sometimes cause this issue.

The issue only started when I tried to include a custom field type as part of my solution, to do this I added the following to the 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've tried taking it back to just references to the ascx in both but it doesn't see to help.

Any ideas?

Myiasis answered 16/6, 2009 at 14:7 Comment(0)
K
2

Do you need the "..\" in your DDF?

Kamerman answered 16/6, 2009 at 21:18 Comment(1)
(+1)This was what I was after in my answer...just didn´t remember it.Fredricfredrick
R
7

Check that you don't have any special characters in your files. They might have sneaked in as a result of copy-paste. For example, the way your code sample renders on this page, it has the (`), which shouldn't be there.

Refinery answered 16/6, 2009 at 14:31 Comment(1)
Checked there aren't any special chars in the source (edited original question as some stuff had come into StackOverflow wrongly when pasting it from Outlook)Myiasis
K
2

Do you need the "..\" in your DDF?

Kamerman answered 16/6, 2009 at 21:18 Comment(1)
(+1)This was what I was after in my answer...just didn´t remember it.Fredricfredrick
V
1

The issue is more likely due to invalid names for files you are deploying on SharePoint 14 hive folder. If you are using parenthesis ‘(‘, ‘)’ in file names or special characters like @ in file names, this issue will occur.

Remove it and issue should vanish.

Vise answered 14/11, 2013 at 13:43 Comment(0)
F
0

I just know I have had the same issues and I think I made a note of it at work somewhere (I´ll check that tomorrow and post back here if I find something). I just can´t remember how I fixed it right now (maybe it was a slash the wrong way / vs. \..hmm). I did a search for it on google (which I think you have also done). Found this (check it out):

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

Fredricfredrick answered 16/6, 2009 at 18:59 Comment(0)
C
0

The List Instance Name I had was "MyListInstance (List Instance)". I removed the brackets from the name and it deployed without issues.

Crumple answered 20/12, 2010 at 12:39 Comment(0)
C
0

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

Cephalic answered 28/2, 2011 at 7:33 Comment(0)
I
0

A reboot solved my 'Failed to extract cab file' problem. There were some updates installed and an reboot was required. Was not clear that this was related but it helped.

Interdependent answered 30/7, 2015 at 12:23 Comment(0)
N
0

Something would have gone wrong during the build of WSP. Re build the WSP and Deploy- it should work fine.

Nettles answered 6/4, 2016 at 14:30 Comment(0)
C
0

In my case, it was insufficient disk space.

Constellation answered 8/8 at 16:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.