Sharepoint 2013提供商托管应用程序使用Profile Service在检查应用程序的先决条件时收到错误

时间:2014-05-06 14:26:28

标签: sharepoint

有趣的是,我可以在mysites上安装应用程序,但不能在不同的发布门户网站上安装。 当我尝试添加它时,我得到以下meesage 抱歉,您的服务器不支持此应用。

该应用尝试调用UserProfile服务。 appmanifest.xml具有以下权限

AppPermissionRequests AllowAppOnlyPolicy =" true"     AppPermissionRequest Scope =" http:// sharepoint / content / sitecollection / web"右=" FullControl"     AppPermissionRequest Scope =" http:// sharepoint / content / sitecollection"右=" FullControl"     AppPermissionRequest范围=" http:// sharepoint / social / tenant"右=" FullControl"     AppPermissionRequest范围=" http:// sharepoint / social / core"右=" FullControl"     AppPermissionRequest范围=" http:// sharepoint / social / microfeed"右=" FullControl"     AppPermissionRequest范围=" http:// sharepoint / content / tenant"右=" FullControl"   AppPermissionRequest

Caught a SPException while checking prerequisites for App 'Address' with asset id '': Microsoft.SharePoint.SPException: An error has been encountered while checking prerequisites for an app. ---> System.ArgumentNullException: Value cannot be null.  Parameter name: name    
 at Microsoft.SharePoint.Utilities.SPUtility.ThrowArgumentExceptionWithTraceTag(UInt32 tagId, ULSCat traceCategory, String argumentName, String argumentLocalizedMessage, String traceMessage, Type argumentExceptionType)    
 at Microsoft.SharePoint.Utilities.SPUtility.ThrowArgumentExceptionWithTraceTag(UInt32 tagId, ULSCat traceCategory, String argumentName, Type argumentExceptionType)    
 at Microsoft.SharePoint.Administration.SPCapability..ctor(String name, SPCapabilityStatus capabilityStatus, String message)    
 at Microsoft.Office.Server.UserProfiles.SPSocialPermissionProvider.GetMissingCustomDependencies(Uri permissionRequestScope, SPWeb hostWeb)    
 at Microsoft.SharePoint.Administration.SPAppPermissionProvider.GetMissingDependencies(Uri permissionRequestScope, SPAppPrerequisitesCheckingContext context, Boolean shouldLog)    
 at Microsoft.SharePoint.Marketplace.SPAppPrerequisitesChecker.CheckPermissionScopeDependencies(List`1 permissionScopeList, Boolean shouldLog)     -
 -- End of inner exception stack trace ---    
 at Microsoft.SharePoint.Marketplace.SPAppPrerequisitesChecker.CheckPermissionScopeDependencies(List`1 permissionScopeList, Boolean shouldLog)    
 at Microsoft.SharePoint.Marketplace.SPAppPrerequisitesChecker.Check(SPAppMetadata appMetadata, List`1& missingCapabilities, Boolean shouldLog)




Caught an exception while on calling SPCapabilityChecker.GetMissingCapabilities(): System.ArgumentNullException: Value cannot be null.  Parameter name: name    
 at Microsoft.SharePoint.Utilities.SPUtility.ThrowArgumentExceptionWithTraceTag(UInt32 tagId, ULSCat traceCategory, String argumentName, String argumentLocalizedMessage, String traceMessage, Type argumentExceptionType)    
 at Microsoft.SharePoint.Utilities.SPUtility.ThrowArgumentExceptionWithTraceTag(UInt32 tagId, ULSCat traceCategory, String argumentName, Type argumentExceptionType)    
 at Microsoft.SharePoint.Administration.SPCapability..ctor(String name, SPCapabilityStatus capabilityStatus, String message)    
 at Microsoft.Office.Server.UserProfiles.SPSocialPermissionProvider.GetMissingCustomDependencies(Uri permissionRequestScope, SPWeb hostWeb)    
 at Microsoft.SharePoint.Administration.SPAppPermissionProvider.GetMissingDependencies(Uri permissionRequestScope, SPAppPrerequisitesCheckingContext context, Boolean shouldLog)    
 at Microsoft.SharePoint.Marketplace.SPAppPrerequisitesChecker.CheckPermissionScopeDependencies(List`1 permissionScopeList, Boolean shouldLog)

1 个答案:

答案 0 :(得分:0)

我将权限更改为以下内容,现在正在运行。它似乎没有在网站(发布网站)中找到一些社交列表

AppPermissionRequests AllowAppOnlyPolicy="true" 
AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"
AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" 
AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" AppPermissionRequest