Hi,
I am trying to use the Content Query WebPart on a site collection which has been created using the "Developer Site" template. Each time I edit the webpart, I get the following error message.
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)
After conducting my investigations, I noticed that the list template type "DeveloperSiteDraftApps" (List Internal Name "DraftAppsListTemplate") has a null value for it's "Name" property. I suspect that is what is causing the error. Is there anyway to resolve this issue. Is this a known error.