1

我有SharePoint 2016Visual 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 

请帮我解决问题。

4

1 回答 1

0

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

  1. 选择 Sharepoint Project 并在“属性”窗格中检查站点 URL 是否设置正确
  2. Visual Studio 中的清洁解决方案
  3. 重建解决方案
  4. 部署解决方案
于 2017-06-16T20:03:06.183 回答