0

i added client web part to host site, it's the out of the box sharepoint hosted app that comes by default with visual studio 2013. when adding the app part to my web page, it gives me (working on it..), but no updates, it should display hello and user name as it does in the app. any idea?

2
  • Did you try executing it by pressing F5 directly from Visual Studio?Also, do you find any error in developer tools console window?
    – 404
    Commented Feb 21, 2015 at 0:41
  • yes, i can see the app executed fine in the app itself, but not from the client web part
    – Lara J
    Commented Feb 21, 2015 at 0:42

1 Answer 1

0

This is a normal behavior when you try to show a page from an App in SharePoint host site, in every page in your App make sure you add:

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

Basically SharePoint pages send specific header in its response which prevents it from being viewed in iframe.

2
  • i tried now and it gave me another error that it is nt allowed it content pages
    – Lara J
    Commented Feb 21, 2015 at 0:50
  • never mind it is working now i entered the line in a wrong place. thank you.
    – Lara J
    Commented Feb 21, 2015 at 0:54

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.