We have made several provider-hosted apps where the app was hosted in an Azure website.

Can we just as easily setup a WinSrv2012/IIS box on-prem to be the "RemoteWeb"?

Are there any special deployment considerations?

Do we need to setup AD or ServiceBus or anything like this in a special configuration?



1 Answer 1


Yes, this is definitely possible - at least if your SharePoint is on-premise. I've never set it up for SharePoint online. It's a bit of a headache to get everything set up right, and you'll want to make sure you have SSL configured on both SharePoint and on IIS on the RemoteWeb server.

I did not have to set up ServiceBus on the RemoteWeb server. I had the RemoteWeb server on the same domain as the SharePoint server, but I am not sure if that is needed.

The high-level steps I went through:

  1. Configure Windows Server with IIS and SSL to be the RemoteWeb server
  2. Create a certificate on the RemoteWeb server to use for the trust relationship
  3. Establish high-trust relationship between RemoteWeb server and SharePoint server (this is done with some SharePoint powershell commands)
  4. Deploy app to IIS on RemoteWeb server

Some gotchas that I ran into:

  • When setting up IIS on the server, ensure that Windows Authentication feature is enabled
  • Make sure the application pool account that your app is running under on the RemoteWeb server can read the private key of the certificate you created under step 2 - by default it probably won't be able to.

Each of the steps above has many substeps, but your question was can it be done, and the answer is yes.

This page helped me a lot when I was setting up my server to host my app: http://www.luisevalencia.com/2014/07/23/prepare-environments-sharepoint-provider-hosted-apps/

  • Thanks this is very helpful. We are actually focused on O365 with on-prem provider hosting. But thinking about your reply, I guess that this can only work "off-prem" is if the provider IIS is accessible "off-prem" just like O365.
    – antelope
    Feb 11, 2015 at 21:18

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.