Set up development environment for apps for SharePoint 2013

简介:

 

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 Server
  • Select 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

  • 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

Step 2.Configure an isolated app domain

Use PowerShell to Create an app management and subscription setting service application

复制代码
Add-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.

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

  • Services on Server

 

  • Configure App Urls(* Check)

 

 

 

本博客为 木宛城主原创,基于 Creative Commons Attribution 2.5 China Mainland License发布,欢迎转载,演绎或用于商业目的,但是必须保留本文的署名 木宛城主(包含链接)。如您有任何疑问或者授权方面的协商,请给我留言。

本文转自木宛城主博客园博客,原文链接:http://www.cnblogs.com/OceanEyes/p/Set-up-development-environment-for-apps-for-SharePoint-2013.html,如需转载请自行联系原作者
目录
相关文章
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
Java Nacos 开发者
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
3186 1
|
并行计算 PyTorch 算法框架/工具
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
|
开发工具 Android开发
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
554 0
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
|
Android开发 Windows 分布式计算
Hadoop on Windows with Eclipse -03- Set Environment Variables
Set Environment Variables The next step is to set up the PATH environment variable so that Eclipse IDE can access Cygwin commands here To set environm...
1142 0
|
Go
Visual Studio Set Project Environment Variables
Visual Studio Set Project Environment Variables eryar@163.com In Visual Studio you can specify changes to environment variables in the project settings.
1196 0
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”  的一种解决方案:   修改工程依赖的build.
1086 0
|
Java Maven
解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variabl
解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match. myeclipse 2015 在编译(Run As-Maven install)maven项目出现如上错误,需要添加-Dma
2949 0