Friday 8 August 2014

Sorry, there was a problem with "XXXXXXXXX". For support, please contact the developer

Sorry, there was a problem with "XXXXXXXXXX". For support, please contact the developer

When you are trying to add your app part to host web, then you will get this error.
Root Cause: You are missing   <WebPartPages:AllowFraming ID="AllowFraming" runat="server" />

Solution:

Add below tag in your app part pages.All the pages which you are using in app.
  <WebPartPages:AllowFraming ID="AllowFraming" runat="server" />

<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />
<div>
Your code
</div>
</asp:Content>