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

もうごみ箱を空にしました。このサイト テンプレートを無効にして削除する方法を知っている人はいますか?

4

2 に答える 2

2

あなたはごみ箱を空にしたと言います。両方のごみ箱にあるすべてのリサイクル アイテムを確実に空にしましたか? そうでない場合は、これを試してください:

サイト コレクションのルート Web の [サイトの設定] ページに移動します。[サイト コレクションの管理] という見出しの下で、[ごみ箱] リンクをクリックします。[クイック起動] メニューで、[エンド ユーザーのごみ箱] アイテムを選択し、表示されるすべてのアイテムを選択して、アイテム リストの上部にある [選択項目の削除] リンクをクリックします。ここで、クイック起動メニューから [エンド ユーザーのごみ箱から削除] を選択して、同じ操作を行います。

ソリューション ギャラリーに戻ると、ソリューションを非アクティブ化して削除できるはずです。

于 2012-05-04T02:15:25.487 に答える
0

無効化コードを確認してください。そこに、この問題を引き起こしているコードがあります。私が提案するのは、機能ページを起動し、Visual Studio をすべての w3wp プロセスに接続し、機能の非アクティブ化にブレークポイントを設定することです。これにより、何が問題なのかがわかります。

私の推測では、もはや存在しない Web オブジェクトを作成していると思われます。

于 2012-03-21T13:10:17.707 に答える