locked
SharePoint "Hello World" App showing blank page RRS feed

  • Question

  • I have just created and deployed a "Hello World" app to test our SharePoint 2013 Appstore and run into a problem. The application has been uploaded to the store and can be added to a site, but when I click on the app in the site I get a blank page containing the following html:

    <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" content="NOINDEX " /></head><body></body>
                    <script type="text/javascript">
                     var gearPage = document.getElementById('GearPage');
                     if(null != gearPage)
                     {
                         gearPage.parentNode.removeChild(gearPage);
                         document.title = "Error";
                     }
                     </script>
                     </html>

    I think the issue is related to the way our SharePoint environment is ssl offloaded. We have set up AAMs for the web application the application store is set up on. Both this site and the app domain are being offloaded.

    We have applied SP1, which as far as I am aware contains the March update which allows the app store to work like this.

    Has anyone got any suggestions?

    Thanks

    Wednesday, March 4, 2015 4:43 PM

Answers

  • Hi,

    The cause of the issue is The App request URL and the App service response URL for the requested App should be on the same protocol (either HTTP or HTTPS).

    Resolution
    ​1. If the Site/App is browsed over HTTP and you experience the above behaviour (a blank Page), set the Default zone URL of that web application to HTTP and try again.
    2. If the Site/App is browsed over HTTPS and you experience the above behaviour (a blank Page), set the Default zone URL of that web application to HTTPS and try again.

    For more information,you can refer the article below:

    SharePoint 2013: App Web Renders a Blank Page When You Try to Browse/Launch an App from a SharePoint Site Over HTTP or HTTPS.

    Thanks

    Best Regards,

    Jerry Guo


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Eric Tao Monday, March 23, 2015 2:35 PM
    • Marked as answer by Eric Tao Wednesday, March 25, 2015 5:06 AM
    Monday, March 9, 2015 2:16 AM

All replies

  • Hi Jason,

    According to your description, my understanding is that when you open the app in AppStore, then it display a blank page with the html code above.

    I suggest you can use Fiddler to check if there is something wrong when the page load. If the issue still exists, I suggest you can try to configure a new app environment to test if it works.

    Here are some detailed articles for your reference:

    Configure an environment for apps for SharePoint (SharePoint 2013)

    How to: Set up an on-premises development environment for apps for SharePoint

    Fiddler

    Thanks

    Best Regards,

    Jerry Guo


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, March 5, 2015 11:05 AM
  • Thanks for your reply Jerry,

    This problem is a reproduction of the same issue we were having in our production environment. We are trying to install a 3rd party application and it wasn't working. In order to troubleshoot, we have configured our test environment in the same way and created a blank app to test the app store in isolation.

    I have used a number of network tools to see if there's anything obvious there, but in terms of the request it seems to be going through fine - SharePoint is serving the blank page.

    We have had a dig in the logs and found the following entry:

    03/05/2015 09:13:34.20 w3wp.exe (0x06A4) 0x0CCC SharePoint Foundation General aiz2a High Request for app scheme does not match the webapp's scheme for this zone. Request Uri: http://app-4de7650b52503a.appstore-tst2013.<our domain>.net/sites/apptest/SharePointApp1/Pages/Default.aspx?SPHostUrl=https%3A%2F%2Fdocs%2Dtst2013%2E<our domain>%2Enet%2Fsites%2Fapptest&SPLanguage=en%2DUS&SPClientTag=0&SPProductNumber=15%2E0%2E4693%2E1000&SPAppWebUrl=https%3A%2F%2Fapp%2D4de7650b52503a%2Eappstore%2Dtst2013%2E<our domain>%2Enet%2Fsites%2Fapptest%2FSharePointApp1  Zone Response Uri: https://docs-tst2013.<our domain>.net Site collection path: /sites/apptest.

    Which seems to be saying the incoming request was an http:// request when it was expecting https://

    SSL is offloaded in our environment so the request to the SharePoint server will be http:// from the NLB, and https:// from the client browser.

    We have AAMs for the web application the app store url points to with http:// as the internal url and https:// as the public url.

    Does this help?

    Thanks.


    • Edited by Jason Soper Thursday, March 5, 2015 1:03 PM
    Thursday, March 5, 2015 1:03 PM
  • Hi,

    The cause of the issue is The App request URL and the App service response URL for the requested App should be on the same protocol (either HTTP or HTTPS).

    Resolution
    ​1. If the Site/App is browsed over HTTP and you experience the above behaviour (a blank Page), set the Default zone URL of that web application to HTTP and try again.
    2. If the Site/App is browsed over HTTPS and you experience the above behaviour (a blank Page), set the Default zone URL of that web application to HTTPS and try again.

    For more information,you can refer the article below:

    SharePoint 2013: App Web Renders a Blank Page When You Try to Browse/Launch an App from a SharePoint Site Over HTTP or HTTPS.

    Thanks

    Best Regards,

    Jerry Guo


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Eric Tao Monday, March 23, 2015 2:35 PM
    • Marked as answer by Eric Tao Wednesday, March 25, 2015 5:06 AM
    Monday, March 9, 2015 2:16 AM