2017-03-16 81 views
1

我在服务器上安装了SharePoint 2016Visual Studio 2015。我创建简单的“Hello World”的Visual Web一部分,但同时部署我得到错误:使用Visual Studio 2015进行SharePoint 2016可视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 

请帮我解决这个问题。

回答

0

您是否在Sharepoint项目中创建了功能?如果不是,请创建功能(例如Site scoped)并将Visual Web Part添加为功能中的项目。然后执行以下步骤:

  1. 选择SharePoint项目,并在属性面板中检查,如果网站的网址是否正确设置
  2. 清理解决方案在Visual Studio
  3. 重建解决方案
  4. 部署解决方案