Wednesday 23 July 2014

This content cannot be displayed in a frame

Problem Statement: I was trying to navigate different pages in SharePoint Hosted app. When i click on some page in the App UI, i am getting this error.
Root Cause: All pages should have allow framing tag.
Solution:
Add below tag in side asp:Content.

<WebPartPages:AllowFraming ID="AllowFraming1" runat="server" />