Prerequisites
- SharePoint Office 365 site:you can select the developer template to create your site collection. If you haven ' t O365 account, you can go to the Web Site and apply a to free account.
If You need select the publishing portal template, you need enable Side Loading feature-to-support App install through& nbsp SharePoint Online Management Shell tools. here, you can get the PowerShell named ENABLESIDELOADING.PS1.
Note:if You receive the error message "cannot was loaded because running scripts is disabled on this system. For more information, see About_execution_policies ", run the command below, then try again. An example of this is pictured below. Set-executionpolicy remotesigned
- Windows Azure Web site:we Use the Windows Azure Web Site to Host your SharePoint provider host APP.
After the Office 365 SharePoint site collection and Windows Azure Web site has been created, let's get into business.
- We Open VS2013 and create a provider hosted Demo:
- Type the Office 365 SharePoint365 site collection URL, and select provider-hosted Radio box.
- Here, I-Select Web Forms application, you can choose MVC Web application if you wanted.
- Select ACS authentication.
- You'll find there is projects that has been created. In fact, Providerhostedappdemo is the SharePoint provider-hosted app, and the Providerhostedappdemoweb are the Web site that PR Ovider-hosted app hosted.
- Press F5 key to start debug, there is a hint as bellow, select Trust It.
- We'll enter the remote Web site.
- Where is the Provider-hosted app, you can open site contents of the SharePoint Collection, you can find there are an app NA Med Providerhostedappdemo, when you click on the this app, it'll take your to the remote Web site.
- ? Now there are known what SharePoint provider-hosted apps is, now the app is hosted on my development machine not Windows Azu Re site, you'll find app that's hosted in Windows Azure site in the following chapter. Next Chapter I'll take your to see how to create, read, write a list to SharePoint from remote Web.