How to develop a provider hosted APP which is hosted in Azure websites and linked to SharePoint Online?

Source: Internet
Author: User

Prerequisites
    1. 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

       

    2. 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.

  1. We Open VS2013 and create a provider hosted Demo:
  2. Type the Office 365 SharePoint365 site collection URL, and select provider-hosted Radio box.
  3. Here, I-Select Web Forms application, you can choose MVC Web application if you wanted.
  4. Select ACS authentication.
  5. 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.
  6. Press F5 key to start debug, there is a hint as bellow, select Trust It.
  7. We'll enter the remote Web site.
  8. 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.
  9. ? 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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.