Right now i am working on SharePoint Hosted App. I have create one SharePoint Hosted App in my on-premise environment. But my App URL is like


Instead of


I don't know what happen or is anything wrong i have done?

Note: I have created self-singed certificate for app.

1 Answer 1


By default a SharePoint App-project use IIS Express as web server. And if you deploy your App from within Visual Studio using Ctrl+F5 you will get URLs similar to https://localhost:44305

If you want to use a predefined IIS site with http://Apps-12345678ABCDEF.ContosoApps.com bound as host name then you can try this:

  1. Open your web project in Visual Studio
  2. Open Project Properties (right-click on the project)
  3. Click on the Web section
  4. Under the Servers heading change from IIS Express to Local IIS and also update the Project Url.

As an alternative you can Publish your app from the App-project.

  1. Right click project and select Publish...
  2. Click Package the app
  3. Enter your DNS/URL in the field Where is your website hosted?
  4. Deploy the App to App catalog or directly to the web site

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.