SharePoint 2013 – The specified view is invalid in call to LimitedWebPartManager.AddWebPart

Adding a webpart Today I tried to add a web part to a page using the following code: ListViewWebPart webpart = new ListViewWebPart(); webpart.Title = “Matter Emails”; webpart.ListName = item.ListItems.List.ID.ToString(“B”).ToUpper(); … read the sharepoint-2013-the-specified-view-is-invalid-in-call-to-limitedwebpartmanager-addwebpart post