2013-08-29 52 views
0

我的發佈網站歡迎頁上有一個CQWP。當我去編輯網頁部分時,我收到了一個「抱歉,出錯了,發生了意外的錯誤。」屏幕連同相關ID:c6e03d9c-f1be-f0a0-ed33-e826db494520。有誰知道這是什麼原因造成的?我已經搜遍遍了,找不到解決方案。嘗試編輯SharePoint 2013中的內容查詢Web部件時出錯

編輯:我知道我認爲我發現錯誤:「UserAgent不可用,文件操作可能未優化。」我仍然不知道這意味着什麼或做什麼。

+0

這裏有一分鐘以上的日誌。點擊「切換文字換行」以使其可讀。 pastebin.com/jP0HAwy6 – Donald

+0

與正確的關聯編號(不同,然後在我的OP),我得到http://pastebin.com/936BFbEb SP還是新手,學習如何做到這一切。在這裏發表這些評論,希望能在某些時候幫助其他人 – Donald

+0

我相信我發現了錯誤,「UserAgent不可用,文件操作可能不會被優化。」不完全確定這是什麼意思 – Donald

回答

0

通過您的日誌中去,你所得到的錯誤是

System.ArgumentNullException: Key cannot be null. Parameter name: key 
at System.Collections.SortedList.IndexOfKey(Object key)  
at System.Collections.SortedList.ContainsKey(Object key)  
at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.AppendListTypes(SortedList sortedListItems, SPListTemplateCollection listTypes)  
at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.populateListTypeDropDown()  
at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.populateCBQControls()  
at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.OnPreRender(EventArgs e)  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Control.PreRenderRecursiveInternal()  
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

確保該列表中的所有項目「名稱」列不爲空。這是這個問題最可能的原因。

+0

雖然列表確切嗎?我只是想編輯Web部分,我還沒有配置它或任何東西。我很困惑什麼列表有空條目 – Donald

+0

默認情況下,當添加內容查詢web部件時,它會查找頁面庫列表,因此請確保頁面庫中的所有項目都有不含空值的列。 – msounthar

+0

它看起來像列表上有兩個條目,這裏有一個屏幕截圖:http://i.imgur.com/gB2xpm8.png 默認情況下聯繫人列是否會導致此問題? – Donald

0

上面同意,檢查日誌後,我們發現應該有一列是NULL。所以仔細檢查並修改(如果有的話)。

+0

儘管列出了哪些內容?我只是想編輯Web部分,我還沒有配置它或任何東西。我很困惑什麼列表有空條目 – Donald

0

你似乎有相同的問題,就是這裏所說的......

Connect Explanation

只要運行以下命令,它應該修復它...

Disable-SPFeature -Identity "e374875e-06b6-11e0-b0fa-57f5dfd72085" -Url http://sitecollectionurl 

希望它可以幫助

相關問題