I have created Provider Hosted App. And Checked locally on my machine that if it is working or not. It was working properly on my machine.
I create a self-signed certificate for deploying my app on my machine as shown in the MSDN site.
Now when it was working properly I tried to publish my app on Office365.

I added my app into my Online Site of Office365 and followed all necessary steps for publishing.

But when I Open My app after adding it I just got error that 404: Page Not Found On the page that is the Start Page of my app. It was not finding the page which I added in my app as a Start page.

This image is of error when I run app on Office365 site

-> Do any one know how to solve this.?
-> When we publish Provider Hosted App don't it get all the pages installed that we have created for it on Web Site where we have published App.?
-> Can I add different .aspx Pages to an Provider Hosted app.?

  • What's the URL it's trying to go to? Is it your local dev URL or a publically accessible URL? May 29, 2013 at 13:10
  • No it is my Office365 Development URL. May 29, 2013 at 13:11
  • Ignoring O365 for a moment, can you browse to the provider-host URL? May 29, 2013 at 13:14
  • I don't know about that sir. Which will be the Provider Host Url? May 29, 2013 at 13:15
  • I am totally new for SharePoint App Development so I just know what I have seen on the time Development and Other what I have searched. May 29, 2013 at 13:48

2 Answers 2


Try creating a website in Azure and publish the appweb file there. Then make sure that the app file is pointing to that site which will be .azurewebsites.net. Also make sure that the app has the relevent rights and permissions


You needed to configure the Azure website with the client id and client secret. As explained to the following blog

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.