0

Trying to run a simple Sharepoint 2013 App in Visual Studio (however, the same thing happens with all Sharepoint-store installed apps). I have set a url http://sharepointsrv/sites/devtest/ as the site to be used for debugging, (where devtest is a Developer Site) and to be SharePoint-hosted. Also in central administration, I have set apps.sharepoint.demo.local as App domain and app as App prefix in Configure App URLs page.

When pressing debug, my app opens in the browser but seems (see pic) like several images and styles are missing. Also the app url is quite big and strange:

http://app-32d8d8577b05ac.apps.sharepoint.demo.local/sites/devtest/MyWorld/Pages/Default.aspx?SPHostUrl=http%3A%2F%2Fsharepointsrv%2Fsites%2Fdevtest&SPLanguage=en-US&SPClientTag=0&SPProductNumber=15%2E0%2E4569%2E1000&SPAppWebUrl=http%3A%2F%2Fapp-32d8d8577b05ac%2Eapps%2Esharepoint%2Edemo%2Elocal%2Fsites%2Fdevtest%2FMyWorld

enter image description here

2
  • 1
    This explains the "weird" url a bit. The domain, app-weirdstuff.apps.sharepoint.demo.local, gets generated each time the app is deployed.
    – wjervis
    Feb 24, 2016 at 14:21
  • I had similar problem and I created a blank web application on port 80 without any host headers and also added a blank port 80 binding to the web application I deployed the apps to.
    – ova
    Mar 2, 2016 at 14:07

1 Answer 1

0

Try to view the HTML source of the app's page through your browser. Find the paths for your CSS, images etc and check that they are correct (such as by opening them in new browser tabs).

If you are using paths such as ../images/file.png then I suspect your folder structure and path levels are different between when you are debugging locally versus when you have deployed the app.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.