Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Error when trying to display XsltListView on Default.aspx Page

$
0
0

Good Day!

Having a fun post-Christmas Day, I hope? I am using VS 2013 to develop a simple SharePoint-hosted app in C#.  The template opened fine and I am storing on my SPO Developer site, again working fine. I have built a custom list with AllItems. The required elements were formed along with the schema.

I want to display the list on the default page using AllItems. The coding is not being validated in VS and I receive a warning:Warning 1 Validation (ASP.Net): Element 'XsltListViewWebPart' is not supported. \visual studio 2013\Projects\CareersAccordionWebApp\CareersAccordionWebApp\Pages\Default.aspx 39 27 CareersAccordionWebApp.

This validated during debugging with Web Part Error:Invalid Web Part tag. Correlation ID: 8226649c-d40a-a05d-1235-51a2c3248bd5.

<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%><%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %><%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%-- The markup and script in the following Content element will be placed in the <head> of the page --%><asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"><script type="text/javascript" src="../Scripts/jquery-1.9.1.min.js"></script><script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script><script type="text/javascript" src="/_layouts/15/sp.js"></script><meta name="WebPartPageExpansion" content="full" /><!-- Add your CSS styles to the following file --><link rel="Stylesheet" type="text/css" href="../Content/App.css" /><!-- Add your JavaScript to the following file --><script type="text/javascript" src="../Scripts/App.js"></script></asp:Content><%-- The markup in the following Content element will be placed in the TitleArea of the page --%><asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    Page Title</asp:Content><%-- The markup and script in the following Content element will be placed in the <body> of the page --%><asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server"><div><p id="message"><!-- The following content will be replaced with the user name when you run the app - see App.js -->
            initializing...</p></div><WebPartPages:WebpartZone ID="WebPartZone" runat="server" FrameType="None"><WebPartPages:XsltListViewWebPart ID="CareersListView" runat="server" ListUrl="/Lists/CareersList" IsIncluded="True" NoDefaultStyle="True" Title="Careers List" PageType="Page_NORMALVIEW" Default="False" ViewContentTypeId="0x"></WebPartPages:WebpartZone></asp:Content>

I am thinking that there is a reference missing or an assembly not listed. When I open a page from the my SPO site with SharePoint Designer it references:

<%@ Page language="C#"   Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>

and

<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Is this the problem?

Help is greatly appreciated.


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>