我使用WSPBuilder扩展程序将我的项目打包到.wsp中 - >构建WSP。一旦我运行`stsadm -o addsoltion -filename myWsp.wsp并去部署soltion我得到这个:
“农场”范围不支持“模块”类型的元素。无法安装此功能。
现在我拥有一大堆我从previos开发人员那里得到的功能,并且已经部署了这些功能,但我不知道如何。 有人可以帮我实际修复错误并部署我需要的东西吗?
其中一些看起来像这样(manifest.xml):
<?xml version="1.0" encoding="utf-8"?>
<ContentType ID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9" Name="Test Portal Web Part Page"
Description="Web Part Page for Test Portal."
Version="1"
Group="MyCompany Test Portal">
</ContentType>
<!-- Master Page Catalogs -->
<Module Name="PageLayoutsModule" Url="_catalogs/masterpage" RootWebOnly="True" Path="pagelayouts">
<File Url="main.master" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary"/>
<File Url="BeaconLayout.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="BeaconLayout2.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="OneColumnLayout.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="TwoColumnLayout.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="ThreeColumnLayout.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="PrintLayout.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Test Portal Web Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D400BE0CE07B5D2F45ef8EF5235741C789B9;#"></Property>
</File>
<File Url="MyCompanyArticleLinks.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
<File Url="MyCompanyArticle.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
<File Url="MyCompanyArticleRightImage.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
<File Url="MyCompanyWelcomePage.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
<File Url="MyCompanyWelcomePage2.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
<File Url="MyCompanyArticleRightWebParts.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;"></Property>
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/ArticleLinks.png"></Property>
<Property Name="PublishingAssociatedContentType"
Value=";#Article Page;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D;#"></Property>
</File>
</Module>
<!-- Site Pages -->
<Module Name="PagesModule" Url="Pages" RootWebOnly="True" Path="Pages">
<File Url="ResetForgottenPassword.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<AllUsersWebPart WebPartZoneID="Header" WebPartOrder="0">
<![CDATA[
<?xml version="1.0" encoding="utf-8" ?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyCompany.TestPortal.Moss.WebParts.ResetDomainPasswordWebPart, MyCompany.TestPortal.Moss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e32e6f1096bb318"/>
<importErrorMessage>Cannot import the Forgotten Password Reset Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">MyCompany Test Portal Forgotten Password Reset Web Part</property>
<property name="Description" type="string">MyCompany Test Portal Forgotten Password Reset Web Part</property>
<property name="Group" type="string">MyCompany</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
</File>
<File Url="SecretQAManage.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<AllUsersWebPart WebPartZoneID="Header" WebPartOrder="0">
<![CDATA[
<?xml version="1.0" encoding="utf-8" ?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyCompany.TestPortal.Moss.WebParts.SecretQAManageWebPart, MyCompany.TestPortal.Moss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e32e6f1096bb318" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">MyCompany Test Portal Secret Questions & Answers Management Web Part</property>
<property name="Description" type="string">MyCompany Test Portal Secret Questions & Answers Management Web Part</property>
<property name="Group" type="string">MyCompany</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
</File>
<File Url="UserManagement.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<AllUsersWebPart WebPartZoneID="MainWebPartZone" WebPartOrder="0">
<![CDATA[
<?xml version="1.0" encoding="utf-8" ?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyCompany.TestPortal.Moss.WebParts.SsoUserCredentialsWebPart, MyCompany.TestPortal.Moss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e32e6f1096bb318" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="ChromeType" type="chrometype">None</property>
<property name="Title" type="string"> SSO User Credentials Web Part</property>
<property name="Description" type="string">MyCompany Test Portal SSO User Credentials Web Part</property>
<property name="Group" type="string">MyCompany</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
</File>
<File Url="ChangePassword.aspx" IgnoreIfAlreadyExists="true" Type="GhostableInLibrary">
<AllUsersWebPart WebPartZoneID="MainWebPartZone" WebPartOrder="0">
<![CDATA[
<?xml version="1.0" encoding="utf-8"?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyCompany.TestPortal.Moss.WebParts.ChangePasswordWebPart, MyCompany.TestPortal.Moss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e32e6f1096bb318" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="ChromeType" type="chrometype">None</property>
<property name="Title" type="string"> Change Password Web Part</property>
<property name="Description" type="string">MyCompany Test Portal Change Password Web Part</property>
<property name="Group" type="string">MyCompany</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
<AllUsersWebPart WebPartZoneID="MainWebPartZone" WebPartOrder="0">
<![CDATA[
<?xml version="1.0" encoding="utf-8"?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="MyCompany.TestPortal.Moss.WebParts.ChangeNetworkPasswordWebPart, MyCompany.TestPortal.Moss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e32e6f1096bb318" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="ChromeType" type="chrometype">None</property>
<property name="Title" type="string"> Change Network Password Web Part</property>
<property name="Description" type="string">MyCompany Test Portal Change Network Password Web Part</property>
<property name="Group" type="string">MyCompany</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
</File>
</Module>
- &GT;
答案 0 :(得分:1)
您可能已经解决了这个问题。
如果没有,问题似乎与您的范围有关,该范围在 Feature.xml 文件(而不是Elements.xml)中定义。即将其从Farm
更改为Site
:
<Feature ... Scope="Site" ...>