2012-03-20 3 views
0

SharePoint 2010에서는 기존 사이트와이 서식 파일을 사용하여 새 사이트 서식 파일을 만들었습니다. 새 사이트를 삭제 한 후 제거 할 수 있도록 사이트 템플릿을 비활성화 할 수 없습니다. 다음과 같은 예외가 있습니다.새 사이트를 만들고 삭제 한 후에 사이트 서식 파일 (솔루션)을 비활성화 할 수 없습니다.

System.ArgumentException: Value does not fall within the expected range. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Stack Trace: 
[ArgumentException: Value does not fall within the expected range.] 
    Microsoft.SharePoint.SPWebCollection.get_Item(Guid id) +27763375 
    Microsoft.SharePoint.SPFeatureEnumeratorBase.GetCachedWeb(SPSite site, Guid webId, Guid featureId) +252 
[SPFeatureIsOrphanedException: Unable to access web scoped feature (Id: 5c143ca0-e513-4fa5-93a6-a926352c982e) because it references a non-existent or broken web (Id: 196cdf6e-d4a1-4cb6-b962-591aaa3c5f43) on site 'http://win-9o8m2cks1v7'. Exception: System.ArgumentException: Value does not fall within the expected range. 
    at Microsoft.SharePoint.SPWebCollection.get_Item(Guid id) 
    at Microsoft.SharePoint.SPFeatureEnumeratorBase.GetCachedWeb(SPSite site, Guid webId, Guid featureId)] 
    Microsoft.SharePoint.SPFeatureEnumeratorBase.GetCachedWeb(SPSite site, Guid webId, Guid featureId) +22713369 
    Microsoft.SharePoint.SPFeatureEnumeratorBase.GetNextFeatureFromRowset(GetFeaturesState state, SqlDataReader reader, SPSite site) +464 
    Microsoft.SharePoint.SPSiteFeatureEnumerator.System.Collections.IEnumerator.MoveNext() +38 
    Microsoft.SharePoint.SPFeatureQueryResultCollection.System.Collections.IEnumerator.MoveNext() +26338677 
    Microsoft.SharePoint.SPUserSolutionCollection.RemoveFeatureInstancesAndDefinition(SPFeatureDefinition featdef) +770 
    Microsoft.SharePoint.SPUserSolutionCollection.Remove(SPUserSolution solution) +279 
    Microsoft.SharePoint.WebControls.SolutionItemButton.DeactivateItem() +464 
    Microsoft.SharePoint.WebControls.SPLinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +72 
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981 

이미 재활용 쓰레기통을 비었습니다. 아무도 내가이 사이트 서식 파일을 비활성화하고 삭제할 수있는 방법을 알고 있습니까?

답변

2

당신은 휴지통을 비웠다고합니다. 재활용 쓰레기통에있는 재활용품을 모두 비웠습니까? 그렇지 않은 경우 다음을 시도하십시오.

사이트 모음의 루트 웹에 대한 사이트 설정 페이지로 이동하십시오. 사이트 모음 관리 제목 아래에서 휴지통 링크를 클릭하십시오. 빠른 실행 메뉴에서 최종 사용자 휴지통 항목을 선택한 다음 나타나는 모든 항목을 선택하고 항목 목록의 맨 위에있는 선택 항목 삭제 링크를 클릭하십시오. 이제 QuickLaunch Menu에서 Deleted From End User Recycle Bin을 선택하고 동일한 작업을 수행하십시오.

이제 솔루션 갤러리로 돌아 가면 솔루션을 비활성화하고 삭제할 수 있습니다.

0

비활성화 코드를 확인하십시오. 거기에이 문제를 일으키는 코드가 있습니다. 내가 제안하는 기능 페이지를 시작하고, 모든 w3wp 프로세스에 Visual Studio를 연결하고 기능 비활성화에 중단 점을 넣는 것입니다. 그게 잘못되어 가고있는 것을 보여줘야합니다.

제 생각 엔 당신은 더 이상 존재하지 않는 웹 객체를 만들고있는 것 같습니다.