In this post we are going to talk about how can we Develop a SharePoint hosted Apps. This is divided in two primary steps.
Open visual studio 2013 , click on new Project , Select Apps for SharePoint 2013 template under Visual C# >Office/SharePoint>Apps.
Enter the project name as "DemoSPHApp" and provide the location where the code will reside.Click ok.Then it would It will open the wizard to create the project. Select the site ( Based on Developer / Team site definition) where you want to deploy the app . Select Hosting option as SharePoint-hosted.
Click Finish. You would see primarily four main folders.
"Error occurred in deployment step "Installed app for SharePoint": The System Account cannot perform this action".
So now we Open the appmanifest file and Increment the app version by one. Now the App version is incremented from version 1.0.0.0 to 2.0.0.0. We also have modified the page title text on the "default.aspx" under the pages folder from "Page Title" to "Welcome to my First SharePoint Hosted App". Try to deploy the solution using the Visual Studio, one more time. Voola we see the new App.
Step - 2 : Discover the Deployed SharePoint Hosted App
Click on Site content or you should be able to discover the newly deployed app on the left navigation (launch) bar of the host Web.
Note : you can even publish the App using Visual Studio, Register the App on the App Catalog and make it Discoverable.
- Develop the SharePoint Hosted App
- Discover the Deployed SharePoint Hosted App
Open visual studio 2013 , click on new Project , Select Apps for SharePoint 2013 template under Visual C# >Office/SharePoint>Apps.
Enter the project name as "DemoSPHApp" and provide the location where the code will reside.Click ok.Then it would It will open the wizard to create the project. Select the site ( Based on Developer / Team site definition) where you want to deploy the app . Select Hosting option as SharePoint-hosted.
Click Finish. You would see primarily four main folders.
- Content - Responsible for App Content
- Images - Repository for App Images
- Pages - All the app pages that needs to be deployed are stored in this location
- Script - All the scripts that is required for this app to function
"Error occurred in deployment step "Installed app for SharePoint": The System Account cannot perform this action".
The Golden thumb rule is that ,You cannot deploy the apps with system account.Create another account, Provide the required permission on the SharePoint site and open the SQL server management studio and assign the db_owner permissions to this account, which you will be using to deploy the app for following databases.
- SharePoint_Config
- SharePoint_Admin_ [GUID]
- ContentDB to which the app is host.
- Appmanagement_ServiceDB (app management service application database).
- SubscriptionSettings_ServiceDB (Subscription Settings service application database).
So now we Open the appmanifest file and Increment the app version by one. Now the App version is incremented from version 1.0.0.0 to 2.0.0.0. We also have modified the page title text on the "default.aspx" under the pages folder from "Page Title" to "Welcome to my First SharePoint Hosted App". Try to deploy the solution using the Visual Studio, one more time. Voola we see the new App.
Step - 2 : Discover the Deployed SharePoint Hosted App
Click on Site content or you should be able to discover the newly deployed app on the left navigation (launch) bar of the host Web.
Note : you can even publish the App using Visual Studio, Register the App on the App Catalog and make it Discoverable.
No comments:
Post a Comment