SharePoint应用程序部署错误:“无法安装SharePoint的应用程序” [英] SharePoint App Deployment error : 'Failed to install app for SharePoint'

查看:235
本文介绍了SharePoint应用程序部署错误:“无法安装SharePoint的应用程序”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试添加SharePoint mvc应用程序时,我收到以下错误:

 在部署步骤中出现错误安装应用程序对于SharePoint:
无法安装SharePoint的应用程序。有关详细信息,请参见输出窗口。

详细的堆栈跟踪:

  CorrelationId:50583239-71cb-4b07-8bcb-4bbc51a22631 
ErrorDetail:激活应用程序网络定义时出现问题。
ErrorType:App
ErrorTypeName:App相关
异常消息:Microsoft.SharePoint.SPException:HRESULT异常:0x81070964 ---> System.Runtime.InteropServices.COMException:来自HRESULT的异常:0x81070964
在Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrSetupDirectory,String bstrFeatureDirectory,String bstrUrl,String bstrXML,Boolean fForceUnghost,ISPEnableModuleCallback pModuleContext)
在Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrSetupDirectory,String bstrFeatureDirectory,String bstrUrl,String bstrXML,Boolean fForceUnghost,ISPEnableModuleCallback pModuleContext)
---内部异常堆栈跟踪的结束---
在Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionModules(SPFeaturePropertyCollection道具,SPSite网站,SPWeb网站,SPFeatureActivateFlags activateFlags,布尔fForce)
在Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection道具,SPWebApplication webapp,SPSite网站,SPWeb web,SPFeatureActivateFlags activateFlags,Boole一个fForce)
在Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent,SPWeb webParent,SPFeaturePropertyCollection道具,SPFeatureActivateFlags activateFlags,布尔fForce)
在Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef,版本版本, SPFeaturePropertyCollection属性,SPFeatureActivateFlags activateFlags,Boolean force,Boolean fMarkOnly)
在Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId,Int32 compatibilityLevel,String featureName,版本版本,SPFeaturePropertyCollection属性,SPFeatureActivateFlags activateFlags,Boolean force,Boolean fMarkOnly,SPFeatureDefinitionScope featdefScope)
在Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId,版本版本,SPFeaturePropertyCollection属性,布尔强制,布尔fMarkOnly,SPFeatureDefinitionScope featdefScope)
在Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId,Boolean力,SPFeatu reDefinitionScope featdefScope)
在Microsoft.SharePoint.SPUserSolutionCollection.EnsureWebFeaturesActivated(SPUserSolution解决方案)
在Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.ActivateSolution(SPWeb Web,SPUserSolution解决方案)
在Microsoft.SharePoint.Packaging .SPUserCodeSolutionDeploymentGroup.Deploy()
在Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
在Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
源:AppWeb
源名称:App Web部署

有人可以在这个问题上亮起来吗? :)

解决方案

这是因为SharePoint正在尝试激活您的应用程序作为标准的SharePoint功能,当它真的是一个App。 / p>

在SharePoint项目的features文件夹中,将有一个名为Feature1的功能。



打开Feature1并确保它包含在解决方案中的项目列表中,而不是功能中的项目列表。



之后,您应该可以部署。


When I tried to add a SharePoint mvc app I am getting following error:

Error occurred in deployment step 'Install app for SharePoint': 
Failed to install app for SharePoint. Please see the output window for details.

Detailed stack trace:

CorrelationId: 50583239-71cb-4b07-8bcb-4bbc51a22631
     ErrorDetail: There was a problem with activating the app web definition.
     ErrorType: App
     ErrorTypeName: App Related
     ExceptionMessage: Microsoft.SharePoint.SPException: Exception from HRESULT: 0x81070964 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x81070964
at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext)
at Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionModules(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPUserSolutionCollection.EnsureWebFeaturesActivated(SPUserSolution solution)
at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.ActivateSolution(SPWeb web, SPUserSolution solution)
at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.Deploy()
at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
     Source: AppWeb
     SourceName: App Web Deployment

Can somebody have a light on this issue? :)

解决方案

It is because SharePoint is trying to activate your app as a standard SharePoint feature, when its really an App.

In the features folder of the SharePoint project, there will be a Feature named Feature1.

Open Feature1 and ensure it's contained in the "Items in the solution" list and not in the "Items in the feature" list.

After that you should be able to deploy.

这篇关于SharePoint应用程序部署错误:“无法安装SharePoint的应用程序”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆