2017-03-16 137 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. 部署解決方案