深入浅出SharePoint——无法添加Webpart


Unable to add selected web part(s). List View Web Part could not be added, list may be hidden.


Issue: I created a custom list definition using the SharePoint Solution Generator. After deployment, when I tried to add a list view web part that points to my custom list, it gives me the above listed error.

The problem was that I was missing my view with "BaseViewID = 0". The solution generator does create this...not sure how it disappeared on mine. So if you are experiencing this issue, look at your schema.xml file and make sure that in the list of views, you have one with a BaseViewID of 0.

原文地址:https://www.cnblogs.com/mingle/p/2720056.html