1. The configuration script is as follows:
1, make sure that the SPAdmin and Sptimer services are running by opening a command prompt and typing the following command. net start spadminv4net start SPTimerV42, run the SharePoint Management Shell as an administrator, and type the following command to create a stand-alone application domain. Set-spappdomain"app.dc.com"3, make sure that the Spsubscriptionsettingsservice and appmanagementserviceinstance services are running by typing the following command in the SharePoint Management Shell. Get-spserviceinstance |where{$_. GetType (). Name-eq"appmanagementserviceinstance"-or $_. GetType (). Name-eq"spsubscriptionsettingsserviceinstance"} | start-spserviceinstance4, verify that the Spsubscriptionsettingsservice and appmanagementserviceinstance services are running by typing the following command in the SharePoint Management Shell. The output will indicate whether each service is online. Get-spserviceinstance |where{$_. GetType (). Name-eq"appmanagementserviceinstance"-or $_. GetType (). Name-eq"spsubscriptionsettingsserviceinstance"}5, you must specify the account that will be used to run the Spsubscriptionservice and Appmanagementserviceinstance service instances. This account must be spmanagedaccount. You can create spmanagedaccount by typing the following command in the SharePoint Management Shell (Special: You will be prompted for the account domain \ User and password). $account= new-Spmanagedaccount6, specify account, application pool, and database settings for Spsubscriptionservice and appmanagementserviceinstance services by typing the following code in the SharePoint Management Shell. If you created spmanagedaccount in the previous step, use the account name here. $account= Get-spmanagedaccount"Dc\administrator"$APPPOOLSUBSVC= New-spserviceapplicationpool-name Settingsserviceapppool-Account $account $apppoolappsvc= New-spserviceapplicationpool-name Appserviceapppool-Account $account $appsubsvc= new-Spsubscriptionsettingsserviceapplication–applicationpool $APPPOOLSUBSVC –Name settingsserviceapp–databasename Myappsettingsservicedb$proxysubsvc= new-spsubscriptionsettingsserviceapplicationproxy–serviceapplication $APPSUBSVC $appappsvc= New-spappmanagementserviceapplication-applicationpool $APPPOOLAPPSVC-name Appserviceapp-DatabaseName myappappservicedb$proxyappsvc= New-spappmanagementserviceapplicationproxy-serviceapplication $APPAPPSVC7, specify the tenant name by typing the following code in the SharePoint Management Shell. Set-spappsitesubscriptionname-name"app"-confirm:$false
2. Issue: Compilation failed: The system account could not perform this operation.
' Error occurred in Deployment Step ' installed app for SharePoint ': The System account cannot perform this action '
WORKAROUND: You need to create a new account in AD, put the account in the local Administrators group, log in to the server with that account, and log in to vs2012 in Administrator mode.
3. Issue: Compilation failed: The local SharePoint server is not available. Check to see if the server is running and connected to the SharePoint farm.
"Error occurred in Deployment Step" installed app for SharePoint ": The local SharePoint Server was not available. Check the the server is running and connected to the SharePoint Farm "
WORKAROUND: The newly created account will have db_owner permissions for the SQL Server database. Remember to set up each database again.
4. Problem: After landing, unlimited jump out of the user password input box, and finally no display.
Solution:
Modify the two registry options to disable loopback checking
1>. Start Registry Editor (Regedt32.exe).
2>. Locate and then click the following key in the registry:Hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters
3>. On the Edit menu, click Add Value , and then add the following registry value:
Value Name: disablestrictnamechecking
Data type: REG_DWORD
Cardinality: Decimal
Value: 1
4>. In Registry Editor, locate and then click the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
5>. Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press Enter.
Right-click disableloopbackcheck, and then click Modify.
In the Value data box, type 1, and then click OK.
6>. Quit Registry Editor, and then restart your computer .
Refer to the following:
Http://www.cnblogs.com/chenxizhang/p/3397543.html
http://www.sharepoint-journey.com/app-development-in-sharepoint.html#gallery[pagegallery]/4/
SharePoint App Development Environment configuration