首页 > 代码库 > "此站点已经禁用应用程序"在sharepoint 2013中通过v2013部署app提示该错误

"此站点已经禁用应用程序"在sharepoint 2013中通过v2013部署app提示该错误

该错误的原文是:the apps are disabled in this site

可以在yahoo或者bing上搜索这个错误,可以找到解决办法;

msdn上也有该错误解决办法,但是如果搜索中文,目前是找不到的。

解决方案都是一致的,即sahrepoint2013安装完后,需要通过powershell创建app domain

操作命令:

在开始 sharepoint 2013 powershell命令提示框中输入以下,即解决:

net start spadminv4 这个服务默认可能禁用,需要改成自动后开启Set-SPAppDomain "your app domain"  我输入的是 win server 2008的机器名字Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstanceGet-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"}$account = New-SPManagedAccount$account = Get-SPManagedAccount "domain\user"  这里改成机器名\administrator$appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account$appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account$appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc$appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB$proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvcSet-SPAppSiteSubscriptionName -Name "app" -Confirm:$false

这样就不会报“此站点已经禁用应用程序”的错了。

"此站点已经禁用应用程序"在sharepoint 2013中通过v2013部署app提示该错误