This article will explain how to create and host your first provider-hosted app for SharePoint Online (Office 365 and SharePoint 2013 on premise).
Prerequisite
My Office 365 public site:
Office 365 site: just4sharing
Windows Azure Web site: myphapp.azurewebsites
Visual Studio 2012/2013
Step 1: Start a new Visual Studio Project, use the "App for SharePoint 2013" template as in the following:
Step 2: Select the Provider-hosted option for this example. In a Provider-hosted app, application resources will be deployed in a server outside the SharePoint environment.
Step 3: In the next step, select “Use Client secret (requires a SharePoint farm connected to ACS)”. We will be using the Access Control Service (ACS) available with Windows Azure for this example.
Step 4: Click "Finish" and the project is created for you by Visual Studio. You can see two projects created under the solution. The first project consists of just an app icon and AppManifest.xml that manages all the settings like start URL, permission, Query strings, Client ID, Tokens and so on.
Step 5: The next step is to register a new app using client Id and Client Secret.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.


























Sumit KumarPosted Jul 8, 2020, 6:41 AM
Thanks for the Article Biju.
Deepak UpadhyaPosted Sep 24, 2018, 5:57 AM
How to Display Sharepoint list items on a non sharepoint site? Consider I have asp.net website called www.abc.com, so i need to display some announcements from my sharepoint o365 online site on abc.com . Please note that my sharepoint online has multi factor authenication as well.(username+password+pingID). so please share your thoughts.
Akash KumharPosted Sep 13, 2018, 7:12 AM
Nice article Biju sir.
BijuPosted Sep 23, 2016, 1:56 PM
Https://msdn.microsoft.com/en-us/library/office/jj163816.aspx
Venkatareddy AnnapareddyPosted Sep 23, 2016, 12:37 PM
Can you please let me know in above example, How can i find server name, what is the site name and user name , please help ASAP.
Venkatareddy AnnapareddyPosted Sep 23, 2016, 12:34 PM
Hi Biju,
Nisar MohammedPosted Jan 12, 2016, 4:16 AM
Hi, Nice Article BIJU, But What if i want to visit my application directly by through an Address bar by typing "myphapp.azurewebsites.com". Because user will not remember the query string or copy paste the full URL from some where.
Yashwanth MuthineniPosted Aug 22, 2015, 7:06 AM
Nice Explanation...
Gowtham RajamanickamPosted Apr 23, 2015, 10:59 PM
This is great
Gowtham RajamanickamPosted Mar 17, 2015, 7:09 AM
amazing one...
Bharanidharan MPosted Sep 19, 2014, 3:22 AM
after deploying the mvc provider hosted app when i click on the app, it does not navigate to mvc _layouts start page instead it takes me back to the sharepoint site's start.aspx page. pls help
Bharanidharan MPosted Sep 19, 2014, 3:21 AM
http://www.c-sharpcorner.com/UploadFile/ed56a0/how-to-creating-provider-hosted-apps-for-sharepoint-2013/
Raghavender ReddyPosted Jul 8, 2014, 9:57 AM
thank you , its very helpful
Mahesh ChandPosted Feb 20, 2014, 3:17 PM
Welcome to C# Corner, Biju. I like your step by step with screens writing style. Easier to follow and understand.
Dinesh BeniwalPosted Feb 20, 2014, 8:57 AM
Good Start, Welcome to the C# Corner Biju.
Lakshmanan Sethu SankaranarayanPosted Feb 20, 2014, 8:56 AM
Good one :)