Visual studio 2015 使用Visual Studio 2015部署SharePoint 2016 Visual Web部件

Visual studio 2015 使用Visual Studio 2015部署SharePoint 2016 Visual Web部件,visual-studio-2015,sharepoint-2016,Visual Studio 2015,Sharepoint 2016,我在服务器上安装了SharePoint 2016和Visual Studio 2015。我正在创建简单的“Hello World”可视Web部件,但在部署时遇到错误: Severity Code Description Project File Line Suppression State Error Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more

我在服务器上安装了
SharePoint 2016
Visual Studio 2015
。我正在创建简单的“Hello World”可视Web部件,但在部署时遇到错误:

Severity Code
Description Project
File Line
Suppression State
Error Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
VisualWebPartProject2_test15Mar 

请帮助我解决此问题。

您是否在Sharepoint项目中创建了功能?如果否,请创建功能(例如站点范围),并将可视Web部件作为项目添加到功能中。然后执行以下步骤:

  • 选择Sharepoint项目,并在“属性”窗格中检查站点Url设置是否正确
  • VisualStudio中的清洁解决方案
  • 重建解决方案
  • 部署解决方案

  • 您是否在Sharepoint项目中创建了功能?如果否,请创建功能(例如站点范围),并将可视Web部件作为项目添加到功能中。然后执行以下步骤:

  • 选择Sharepoint项目,并在“属性”窗格中检查站点Url设置是否正确
  • VisualStudio中的清洁解决方案
  • 重建解决方案
  • 部署解决方案