My requirement is, I want to add one Sharepoint webpartpage in my visual studio solution, which deploys to /Pages library, where I want to show data from three different lists of same site.

After some search came across, xsltlistview webpart can help in this scenario.

Issue I am facing is, when I deploy my SharePoint farm solution, getting error of

List does not exist.

The page you selected contains a list that does not exist. It may have been deleted by another user.0x81020026

After deployment viewid and list id getting change,

Any thoughts on how to create the xsltlistview webpart where on .aspx I get the listid, viewid pass it as parameter? or any other pointers ?

Thanks in advance.

1 Answer 1


Add the xsltlistviewwebpart in your .aspx page.

 <WebPartPages:XsltListViewWebPart runat="server" IsIncluded="True"
                            GhostedXslLink="main.xsl" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8"
                            Title="My Request" PageType="PAGE_NORMALVIEW" Default="FALSE"
                            __markuptype="vsattributemarkup" PartOrder="2"
                            ViewContentTypeId="0x" __designer:customxsl="fldtypes_Ratings.xsl" ListDisplayName="Your List Display Name">

Don't use ListID and List name parameter in this. they are always assigned new guid with deployment. Only ListDisplayName parameter will serve the purpose,

if we pass ListID parameter will give List does not exist error as Guid is different.

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.