배포 단계에서 오류가 발생했습니다. '기능 활성화':이 작업을 완료 할 수 없습니다.
-
29-09-2020 - |
문제
My SharePoint 2013 솔루션 (Visual Studio에서 생성)에서 모든 아티팩트가 내 솔루션을 형성하는 프로젝트를 만들었습니다.이 프로젝트 사용자 정의 필드, 사용자 정의 콘텐츠 형식과 사용자 정의 콘텐츠 형식과 내 솔루션이 요구하는 사용자 정의 목록을 넣습니다. < / P>
다음이 프로젝트에서 3 개의 기능을 만들었습니다.
사이트 범위 기능 의 첫 번째 기능 내 솔루션의 모든 사용자 정의 콘텐츠 유형 및 사용자 정의 필드 feature_contenttypes_fields 입니다. .
두 번째 기능은 사이트 범위 기능 및 내 사용자 정의 목록 에 대한 모든 목록 정의를 포함합니다 ( "featue_contenttypes_fields"기능을 추가했습니다. 활성화 종속성) , 그 이름은 feature_listDefinitions 입니다.
웹 범위가있는 웹 범위 기능 의 마지막 기능은 내 사용자 정의 목록의 ( "feature_listdefinitions "기능 활성화 종속성으로) , 그 이름은 feature_listinstances 입니다.
솔루션을 성공적으로 빌드 할 수 있지만 배포하지 못합니다.
여기에 솔루션을 배포하는 동안 Visual Studio의 출력이 있습니다.
------- DEPARTIC 시작 : 프로젝트 : 모델, 구성 : CPU 디버그 ------ 활성 배포 구성 : 전개 사전 배치가 지정되지 않았기 때문에 기본 스킵 배포 단계를 건너 뜁니다. IIS를 재활용하십시오 응용 프로그램 풀 : IIS 응용 프로그램 풀 'SharePoint 재활용 - 1111 '... 철회 솔루션 : 비활성화 기능 'model_feature_listDefinitions'... 비활성화 기능 'model_feature_contenttypes_fields'... 철수 솔루션 'model.wsp'... 솔루션 삭제 'model.wsp'... 솔루션 추가 :
솔루션 'model.wsp'을 추가 ... 솔루션 'model.wsp'배포 ...
기능 활성화 : 기능 'feature_contenttypes_fields'활성화 ... 특징 'feature_listDefinitions'활성화 ... 활성화 기능 'feature_listinstances'... 배포 단계에서 오류가 발생했습니다. '활성화 기능':이 작업을 완료 할 수 없습니다.
여기서 목록 정의 기능의 매니페스트를 찾을 수 있습니다.
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="Model ListDefinitions" Id="ab765f54-0a2b-4aa9-b87c-f5066849dc4a" Scope="Site"> <ActivationDependencies>
<ActivationDependency FeatureId="10412a7b-e033-43a0-a485-1c4f4c83ccca" FeatureTitle="Model ContentTypes_Fields" /> </ActivationDependencies> <ElementManifests>
<ElementFile Location="CVs\EditDlg.htm" />
<ElementManifest Location="CVs\Elements.xml" />
<ElementFile Location="CVs\FileDlg.htm" />
<ElementFile Location="CVs\Repair.aspx" />
<ElementFile Location="CVs\Schema.xml" />
<ElementFile Location="CVs\Upload.aspx" />
<ElementManifest Location="Notes\Elements.xml" />
<ElementFile Location="Notes\Schema.xml" />
<ElementManifest Location="Activites\Elements.xml" />
<ElementFile Location="Activites\Schema.xml" />
<ElementManifest Location="Demandes RDV\Elements.xml" />
<ElementFile Location="Demandes RDV\Schema.xml" />
<ElementManifest Location="Entretiens\Elements.xml" />
<ElementFile Location="Entretiens\Schema.xml" />
<ElementManifest Location="Formations\Elements.xml" />
<ElementFile Location="Formations\Schema.xml" />
<ElementManifest Location="Idees\Elements.xml" />
<ElementFile Location="Idees\Schema.xml" />
<ElementManifest Location="Mensualites\Elements.xml" />
<ElementFile Location="Mensualites\Schema.xml" /> </ElementManifests> </Feature>
및 목록 인스턴스의 매니페스트 특징 :
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="Model ListInstances" Id="d61d526e-0e16-4bd4-87e1-1479d405e230" Scope="Web"> <ActivationDependencies>
<ActivationDependency FeatureId="ab765f54-0a2b-4aa9-b87c-f5066849dc4a" FeatureTitle="Model ListDefinitions" /> </ActivationDependencies> <ElementManifests>
<ElementManifest Location="FormationsInstance\Elements.xml" />
<ElementManifest Location="EntretiensInstance\Elements.xml" />
<ElementManifest Location="Demandes RDV Instance\Elements.xml" />
<ElementManifest Location="CVsInstance\Elements.xml" />
<ElementManifest Location="ActivitesInstance\Elements.xml" />
<ElementManifest Location="MensualitesInstance\Elements.xml" />
<ElementManifest Location="NotesInstance\Elements.xml" />
<ElementManifest Location="IdeesInstance\Elements.xml" /> </ElementManifests> </Feature>
누구든지 나를 도와 주실 수 있습니까?
해결책
목록 인스턴스는 ListDefinition의 기능을 maches하는 featureID 속성을 가져야합니다.
기본적으로 추가되지 않으므로 이것이 "이 작업을 완료 할 수 없습니다"라는 이유가 가능합니다.
e.g.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="ListDef"
OnQuickLaunch="TRUE"
TemplateType="10000"
Url="Lists/ListDef"
Description="My List Instance" FeatureId="ab765f54-0a2b-4aa9-b87c-f5066849dc4a">
</ListInstance>
</Elements>
.