Set up development environment for apps for SharePoint 2013
2015-03-02 00:00
639 查看
SharePoint 2013 support app development pattern.An app for SharePoint is small and isolate application that provides a specific bit of functionality.In order to provide isolate apps run in their own domain,instead of the same domain name as your farm.Using a different domain name for apps helps prevent cross-site scripting between apps and SharePoint sites.
Because apps run in their own app domain,so you will have to configure DNS in your environment in order to be able to host apps.So I will create a completely new domain for my apps.Creating a new domain specifically to host host apps in is a bit secure,but it also requires a little bit more configuration.OK,let's begin.
Step 1 Create a new domain to host your apps in
Go to 192.168.123.19 ServerSelect DNS Manager
Right Click "Forward Lookup Zone" and Select "New Zone"
Pop-up the "New Zone Wizard" and Click "Next" again
Specify a zone name
![](http://static.oschina.net/uploads/img/201503/02193909_KYwV.png)
Click "Next" again,then "Finish" it.
Right click on your new zone and Select "New Alias(CName…)"
Pop-up the properties dialog and fill in a * for alias name
Click "Browse"
Navigate to the Foward Lookup Zone for the domain that hosts the sharepoint sites and then navigate to the record that points to the server that hosts the sharepoint site
![](http://static.oschina.net/uploads/img/201503/02193910_XX1V.jpg)
Step 2.Configure an isolated app domain
Use PowerShell to Create an app management and subscription setting service applicationAdd-PSSnapin Microsoft.SharePoint.PowerShell Set-SPAppDomain "gcp-app.com" Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} $account = New-SPManagedAccount $account = Get-SPManagedAccount "gcp-clinplus\SPAppAccount" $appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool_New_R -Account $account $appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool_New_R -Account $account $appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp_New_R –DatabaseName SettingsServiceDB_New_R $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp_New_R -DatabaseName AppServiceDB_New_R $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc Set-SPAppSiteSubscriptionName -Name "fapp" -Confirm:$false
Step 3 Add isolate app domain to bypass list in Internet Explorer(* not required)
After create isolate app domain,perform the steps in the following procedure to add that domain to bypass list in IE. To Ensure that you can navigate to this domain after you depoy a sharepoint-hosted app.In Internet Explorer,go to Tool
Choose Internet option
On the Connection tab,choose the Lan Settings button
Clear the automatically detect settings check box
Select the Use a proxy server for your Lan check box
Choose Advance button, and add "*.gcp-app.com" to the Exception List
Choose Ok button and close Internet Option dialog box.
![](http://static.oschina.net/uploads/img/201503/02193910_xMMo.png)
Step 3 Check SharePoint Central Administration Configure
Check you already created an App Management and Subscription Settings Service Application and that already started the App Management and Subscription Settings services on server.Services Applications
![](http://static.oschina.net/uploads/img/201503/02193910_K12I.png)
![](http://static.oschina.net/uploads/img/201503/02193910_SmMc.png)
Services on Server
![](http://static.oschina.net/uploads/img/201503/02193910_CqUg.png)
![](http://static.oschina.net/uploads/img/201503/02193910_73Rm.png)
Configure App Urls(* Check)
![](http://static.oschina.net/uploads/img/201503/02193910_QbKI.jpg)
相关文章推荐
- Issues for Set up an on-premises development environment for apps for SharePoint 2013 Preview
- Set up development environment for apps for SharePoint 2013
- Set up development environment for apps for SharePoint 2013
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista,
- Configure an environment for apps for SharePoint (SharePoint 2013)为 SharePoint 相关应用程序配置环境
- Setting up Visual Studio 2012 for SharePoint 2013 development
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第7章节--打包并部署SP2013 Apps
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第7章节--打包并部署SP2013 Apps 打包并公布App
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第14章节--使用Office Services开发应用程序 WOPI和新的Office Web Apps Server
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第8章节--配送SP2013Apps 总结
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第2章节--SharePoint 2013 App 模型概览 理解三个SharePoint 部署模型 Apps
- Setting up Visual Studio 2012 for SharePoint 2013 development offline
- Configuring Visual Studio 2012 for SharePoint 2013 and Office 2013 Development
- Setting up your App domain for SharePoint 2013
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第8章节--配送SP2013Apps 应用程序生命周期
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第8章节--配送SP2013Apps 总结
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第2章节--SharePoint 2013 App 模型概览 理解三个SharePoint 部署模型 Apps