Basically in SharePoint, the application can be hosted by three types.
- Provider-hosted
- Hosted in the cloud (Windows Azure auto hosted)
- Hosted in a SharePoint environment
Creating a SharePoint 2013 Auto-hosted App
I want to create a Auto-Hosted App in 2013 using Visual Studio Ultimate 2012.
I have installed Windows server 2012, enabled all required features. Installed Office 2010, SharePoint 2013, Visual Studio Ultimate 2012 and Developer tools for SharePoint 2013.
Now let’s create a Provider-hosted app for a SharePoint 2013 Team site created on Office 365
Step 1: Open Visual Studio 2012 and select Apps->App for SharePoint 2013.
Step 2: Enter the URL of the Site collection where you wish to deploy the app and select AutoHosted option. Click Next button
Step 3: Sign Up for an Office 365 Developer Site and Validate the Connection. If connection successful, click ok and then Finish Button.
Step 4: You will notice that there are 2 projects (one for app and the other for web) created under the solution. Go to the Default.aspx and enter some HTML tags and text to display.
Step 5: Right click on the TestAutoHostedApp and select publish.
Step 6: The following window will pop up and Selcet Finish Button.
Step 7: Once the app is published, the folder containing the .app file will open.
Step 8: Now open the SharePoint site where you wish to deploy the app and click on the "new app to deploy" link.
Step 9: The following popup will appear. Click on the upload link.
Step 10: Enter the .app file location for uploading the app to the site.
Step 11: Once the app is successfully installed, click on Deploy button to deploy the app.
Step 12: The app will seek for permission to deploy. Click on Trust It button to give permission and Once the app is successfully deployed, you can see it in the Site Contents page.