开发SharePoint 2013 App 一
使用sharepoint 2013标准开发工具vs2013, 创建我们的第一个app
接下来要我们选择app名称,调试站点名称,还有选择app宿主类型, 如果使用sharepoint云,那可以选择Autohosted(Azure), Provider-hosted,如果使用本地SharePoint环境,选择SharePoint-Hosted,我选择的是SharePoint-Hosted
漫长的等待后,出现的是熟悉的开发场景Features+Elements组合
部署之前,先确认是否已经执行此文章做的步骤
http://msdn.microsoft.com/en-us/library/fp179923.aspx
配置appmanifest.xml修改app权限
试试部署上去,出错了
Uninstall app for SharePoint:
Skipping the uninstall step because the app for SharePoint is not installed on the server.
Install app for SharePoint:
Uploading the app for SharePoint...
Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.
Sharepoint apps是不允许服务器场管理员去安装app的,这该死的设置, 我只能去更改服务器场管理员, 再重新部署
部署成功
如果遇到需要重复登陆的,做如下操作
1. Click on Start -> Run and type regedit.
2. Locate the key 3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
4. Right click on this key and choose New > DWord Value
5. Name this one "DisableLoopbackCheck"
6. Double-click then on it and type the value “1”
7. Reboot your server. (Mostly not required)
部署结果