How to develop a provider hosted App that is hosted in Azure websites and linked to SharePoint Online?

來源:互聯網
上載者:User

標籤:http   os   io   art   for   cti   

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 free account.

     

    If you need select the publishing portal template, you need enable Side Loading feature to support App install through SharePoint Online Management Shell Tools. Here, you can get the powershell named EnableSideLoading.ps1.

     

    Note: If you receive the error message "cannot be 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 have 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 will find there are two projects that have been created. In fact, ProviderHostedAppDemo is SharePoint provider-hosted app, and the ProviderHostedAppDemoWeb is the web site that provider-hosted app hosted.
  6. Press F5 key to start debug, there is a hint as bellow, select Trust It.
  7. We will 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 is an app named ProviderHostedAppDemo, when you click this app, it will take you to the remote web site.
  9. ?Now you have known what SharePoint provider-hosted app is, now the app is hosted on my development machine not windows azure site, you will find app that is hosted in windows azure site in the following chapter. Next chapter I will take you to see how to create, read, write a list to SharePoint from remote web.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.