0
我使用WSPBuilder擴展 - >構建WSP將我的項目打包到.wsp中。當我運行`STSADM -o addsoltion -filename myWsp.wsp,去部署soltion我得到這個:型「模塊」的
'Farm'範圍不支持'Module'類型的元素。無法安裝此功能
元素在「農場」的範圍不支持。此功能無法安裝。
現在我有一大堆的,我已經從previos開發商inhereted以及這些功能在某種程度上已經部署的功能,但我不知道怎麼辦。 有人可以幫我實際修復錯誤並部署我需要的東西嗎?
其中一些看起來像這樣(的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>
- >