FormServerTemplates異常在SharePoint 「庫設置」 使用自定義的母版
樣式庫
SiteCollectionImages
頁面
我有幾個默認的SharePoint庫的位置和「圖書館se ttings「點擊我得到異常:
System.NullReferenceException:未將對象引用設置爲對象的實例。在Microsoft.SharePoint.ApplicationPages.ListEditPage.OnLoad(EventArgs e)上ASP._layouts_listedit_aspx.OnLoad(EventArgs e)上System.Web.UI.Control.LoadRecursive()在System.Web.UI.Page.ProcessRequestMain(布爾includeStagesBeforeAsyncPoint,布爾includeStagesAfterAsyncPoint)
我所有的調查顯示,這個問題,因爲DocumentTemplateUrl爲空!
this.strDocTemplateURL = "";
if (this.iBaseType == SPBaseType.DocumentLibrary)
{
this.strDocTemplateURL = ((SPDocumentLibrary) this.spList).DocumentTemplateUrl;
this.DocumentLibraryGeneralLinks.Visible = true;
}
if (this.strDocTemplateURL.Length != 0)
但是,一個非常重要的注意,這個錯誤只出現在自定義masterpage!
默認v4 masterpage工作沒有任何問題。
任何想法可以導致一個問題嗎?