“安装 SharePoint 应用程序”中出现错误: 未在此网站上启用应用程序的旁加载 解决方法
2013-07-21 11:38
966 查看
SharePoint 2013 App开发的过程中,部署的时候提示“未在此网站上启用应用程序的旁加载”,
错误 1 部署步骤“安装 SharePoint 应用程序”中出现错误: 未在此网站上启用应用程序的旁加载。
0 0SharePointApp1
"Sideloading of apps is not enabled on this site"
解决方法:
1、下载http://www.microsoft.com/en-us/download/details.aspx?id=30359
2、把下面脚步存为luozhuang.ps1
3、Powershell运行
4、运行时候
Site Url 填入你SharePoint 网站地址
User Name 填入微软账号
Password 填入微软账号密码
成功以后 重新启动计算机,运行 VS2012 Ok
错误 1 部署步骤“安装 SharePoint 应用程序”中出现错误: 未在此网站上启用应用程序的旁加载。
0 0SharePointApp1
"Sideloading of apps is not enabled on this site"
解决方法:
1、下载http://www.microsoft.com/en-us/download/details.aspx?id=30359
2、把下面脚步存为luozhuang.ps1
3、Powershell运行
4、运行时候
Site Url 填入你SharePoint 网站地址
User Name 填入微软账号
Password 填入微软账号密码
成功以后 重新启动计算机,运行 VS2012 Ok
#CODE STARTS HERE $programFiles = [environment]::getfolderpath("programfiles") add-type -Path $programFiles'\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll' Write-Host 'To enable SharePoint app sideLoading, enter Site Url, username and password' $siteurl = Read-Host 'Site Url' $username = Read-Host "User Name" $password = Read-Host -AsSecureString 'Password' if ($siteurl -eq '') { $siteurl = 'https://mytenant.sharepoint.com/sites/mysite' $username = 'me@mytenant.onmicrosoft.com' $password = ConvertTo-SecureString -String 'mypassword!' -AsPlainText -Force } $outfilepath = $siteurl -replace ':', '_' -replace '/', '_' try { [Microsoft.SharePoint.Client.ClientContext]$cc = New-Object Microsoft.SharePoint.Client.ClientContext($siteurl) [Microsoft.SharePoint.Client.SharePointOnlineCredentials]$spocreds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $cc.Credentials = $spocreds Write-Host -ForegroundColor Yellow 'SideLoading feature is not enabled on the site:' $siteurl $site = $cc.Site; $sideLoadingGuid = new-object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D" $site.Features.Add($sideLoadingGuid, $false, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None); $cc.ExecuteQuery(); Write-Host -ForegroundColor Green 'SideLoading feature enabled on site' $siteurl #Activate the Developer Site feature } catch { Write-Host -ForegroundColor Red 'Error encountered when trying to enable SideLoading feature' $siteurl, ':' $Error[0].ToString(); } #CODE ENDS HERE
相关文章推荐
- 在Windows Server 2008 R2(64位)上安装SharePoint 2007出现的一个错误的解决方法
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- 安装SQL Server 2012过程中出现“启用windows功能NetFx3时出错”(错误原因、详细分析及解决方法)以及在Windows Server2012上安装.NET Framework 3
- SharePoint 2013 App 未在此网站上启用应用程序的旁加载
- aspcms网站访问出现3706错误, 错误描述:未找到提供程序。该程序可能未正确安装,解决的方法。
- 用VS2010自带的Library Package Manager安装EFCodeFirst出现“无法加载一个或多个请求的类型”错误的解决方法
- 安装SQL Server 2012过程中出现“启用windows功能NetFx3时出错”(错误原因、详细分析及解决方法)以及在Windows Server2012上安装.NET Framework 3
- Sharepoint 站点下应用程序虚拟路径下出现"不能进行输出缓存处理",错误ID 5787 解决方法
- Sharepoint 站点下应用程序虚拟路径下出现"不能进行输出缓存处理",错误ID 5787 解决方法
- 在Windows Server 2008 R2(64位)上安装SharePoint 2007出现的一个错误的解决方法
- 安装SQL Server 2012过程中出现“启用windows功能NetFx3时出错”(错误原因、详细分析及解决方法)以及在Windows Server2012上安装.NET Framework 3.5的详细分析及安装过程
- 尝试调试 ASP.NET Web 应用程序时出现权限错误的解决方法
- 关于windows安装python过程中出现error 2503 2502错误的解决方法
- Ubuntu 11.10 安装 XEN 出现错误的解决方法
- 安装Project2007 Visio 2007 出现1706错误的解决方法
- Asp.net中建立MS office组件时出现“拒绝访问”和“消息筛选器显示应用程序正在使用中”错误的解决方法
- Oracle OLE DB驱动无法安装,注册出现错误,解决方法!
- 安装Office 2003出现"错误代码1606 无法访问网络位置0"的解决方法
- Linux安装软件时出现无法修正错误的解决方法