SharePont 2013: Configuring/Preparing Your SharePoint 2013 Dev Environment for (SharePoint Hosted) App Development

This blog post is not intended to give an A to Z instruction set on how to set up an SharePoint 2013 Environment for SharePoint hosted app development. Since there has been a lot written on this subject. 
This post will simply point out the issues and direct the readers towards the right article that explain the solution to the problem. 

Following is a brief summary on how to prepare you SharePoint 2013 farm for app development.
If you try creating an app using Farm Admin account you will get the following error:

"Error occurred in deployment step "Installed app for SharePoint": The System Account cannot perform this action".
This error is well justified because if you are using your farm account to develop SharePoint 2013 apps, this is definitly going to kill the purpose of creating Apps on this amazing App Model which is there to replace the Sandbox Model. 


Therefore you got to be a Normal Dev user and you got to be in a separate domain and you should be using JSOM most of the times.  

So to get rid of this nasty error follow the instruction given below.

Prerequisite:

$account = Get-SPManagedAccount "domain\spappdev"
$appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
$appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
$appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB
$proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc
$appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB
$proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc


To get a complete picture go throught the instruction given on the following links:

Comments

Popular posts from this blog

SPFx: Develop using SharePoint Framework without Installing all the dependecies.

SharePoint Online: Elevated Permissions....with love

Powershell: Filling up an Existing Excel Sheet with data from SQL Server