I have an issue with adding XsltListViewWebPart on a page for Document Library. When I do it using code below everything works fine unless I create some folder and upload a document there. Such documents have corrupted context menu.
"This item is no longer available. It may have been deleted by another user. Click 'OK' to refresh the page."
When I use ListViewWebPart instead of XsltListViewWebPart everything is ok (but this solution is not acceptable).
Code I use:
using (var site = new SPSite("http://moss_server/ct4"))
using (SPWeb web = site.OpenWeb())
SPFile page = web.RootFolder.Files["Defaul
View Complete Post