当我尝试使用 stsadm -o addsolution -filename 部署我的 wsp 时,我收到“无法提取解决方案中的 cab 文件”错误。
我已将 wsp 作为 cab 打开并检查其中是否有重复文件,据我所知有时会导致此问题。
该问题仅在我尝试将自定义字段类型作为解决方案的一部分时才开始,为此我将以下内容添加到 ddf
..\CustomFields\ShortMonth\ShortMonthControl.ascx ..\CONTROLTEMPLATES\ShortMonthControl.ascx
..\CustomFields\ShortMonth\fldtypes_shortmonth.xml ..\XML\fldtypes_shortmonth.xml
和<TemplateFiles
><TemplateFile Location="CONTROLTEMPLATES\ShortMonthControl.ascx"/
><TemplateFile Location="XML\fldtypes_shortmonth.xml"/>
</TemplateFiles>
到 list 。
我试过把它恢复到只引用两者中的 ascx ,但它没有帮助。
有任何想法吗?
最佳答案
检查您的文件中是否没有任何特殊字符。他们可能是因为复制粘贴而偷偷溜进来的。例如,您的代码示例在此页面上呈现的方式,它有 (`),它不应该在那里。
关于共享点: "Failed to extract the cab file in the solution",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1001726/