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

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 ToolsHere, 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.

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

时间: 2024-10-16 05:10:56

How to develop a provider hosted App that is hosted in Azure websites and linked to SharePoint Online?的相关文章

SharePoint Provider Hosted App Walk through -- Foreword

Content ? In the past few months, I attended some projects development that use SharePoint Provider host app model, in this course I will walk you through creating a provider hosted App for SharePoint. This will show the following key features: How t

Provider Hosted App中使用JOM问题

在使用SharePoint 2013的JOM时,出现以下问题: ReferenceError: SP is not defined 经反复试验和搜索,得出以下两种方式: 一.直接引用JS文件,引用顺序很重要: <script type="text/javascript" src="https://nn.sharepoint.com/teams/ap1/gct/_layouts/15/MicrosoftAjax.js"></script> &l

使用 Visual Studio 开发并调试 Mail Add-in (mail app for Outlook)

准备工作 如果你的邮箱搭建在 Exchange Server 上,则可以创建邮件应用程序(Mail Add-in)来扩展Office本身的功能,使用 Office Add-in Model 开发的 Mail Add-in 可以运行在 Outlook 富客户端.Outlook Web App 和 适用于各种设备(如 IOS)的 OWA 上.在开发之前,你需要一个有效的邮箱账号和密码(如你在公司内部的 工作邮箱). 创建 Mail Add-In 项目 Step 1 在 Visual Studio 中

调试iOS app的WebView

UIWebView算是在iOS中使用较多的一个控件,但Xcode并没有提供工具让我们调试WebView.那么如何调试WebView呢?Android用Chrome,iOS下当然就得用Safari啦. 首先,我们需要在Safari显示Develop菜单.打开Safari,点击Safari -> Peferences -> Advanced,勾选"Show Develop Menu in Menubar". 如果是在模拟器中调试的话: 1.在模拟器中打开应用,并点开需要调试We

使用drozer对app进行评估(转载)

使用drozer对Android应用进行安全评估的测试例子 看着drozer的用户说明文档,试了几个Android App,测试发现这几个App都基本没什么问题,只好又用drozer提供的sieve来进行练习了.进行安装评估的步骤一般也就是下面的标题步骤了. 1 在Android设备上安装使用sieve sieve是一个密码管理器App,用来展示Android应用的一些共同缺陷,可以用来练习使用drozer.https://www.mwrinfosecurity.com/system/asset

AngularJS 笔记之创建服务方式比较 : factory vs service vs provider 。

首先说一下服务这个东西是用来干嘛的.很多时候我们把太多的数据和逻辑都一股脑儿地往 controller 里放.这样我们的 controller 原来越臃肿.从它们的生命周期可以发现,其实 controller 应该在需要的时候被初始化,不用了就直接被抛弃,释放内存.因此,当我们切换或者刷新页面的时候,angular 就会清空当前的 controller.与所以,service 才应该被用来保存应用业务逻辑和持久化的数据,并且这些数据可以在不同的 controller 之间应用. 那么问题来了,(

Android Content Provider的启动过程源代码分析

本文参考Android应用程序组件Content Provider的启动过程源代码分析http://blog.csdn.net/luoshengyang/article/details/6963418和<Android系统源代码情景分析>,作者罗升阳. 0.总图流程图如下: 1.MainActivity进程向ActivityServiceManager主线程发送GET_CONTENT_PORVIDER_TRANSACTION 如下图: 如图:第一步 ~/Android/frameworks/b

Azure Stack技术深入浅出系列5:在Azure Stack上使用Web App PaaS服务及其背后原理窥探(开发案例)

App Service 是微软Azure的PaaS产品. 为任何平台或设备创建Web App PaaS服务和mobile App PaaS服务. 将应用与SaaS解决方案集成.与本地应用程序进行连接,以实现业务流程的自动化.在我们日常开发中,经常会使用Web App PaaS服务来承载企业的业务. 本文试图通过一个案例来分别详细说明Azure Web App业务的下列几大特点: 应用服务计划 多种语言和框架 持续集成和部署 连接数据库服务 可用性全局缩放 就在本文撰写过程中,Azure Stac

Android安全开发之Provider组件安全

Android安全开发之Provider组件安全 作者:伊樵.呆狐@阿里聚安全 1 Content Provider组件简介 Content Provider组件是Android应用的重要组件之一,管理对数据的访问,主要用于不同的应用程序之间实现数据共享的功能.Content Provider的数据源不止包括SQLite数据库,还可以是文件数据.通过将数据储存层和应用层分离,Content Provider为各种数据源提供了一个通用的接口. 创建一个自己的Content Provider需要继承