Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Unable to display this Web Part. Only on new site beneeth the site collection, when activating another webpart that adds views to a list

$
0
0

Hello,

I have a problem regarding a webpart that is not showing on certain sites. It just shows the following error:
"Unable to display this Web Part." With an correlation id. Searching for the ID in the log shows that the page I selected contains a list that does not exists. The strange thing is that the list exists on that exact page. So I cannot figure out why this is happening. Another thing is that if I deploy the webpart to an top level site collection it does work fine. To break it down this is what it looks like:

First I create a new site collection, let us call it SiteCollection, using central administration. Then I create a subsite by using the gui on the webpage -> go to site contents -> create a new subiste. Let us call the subsite a SubSite. So the url to it is like this: http://sharepoint/sites/SiteCollection/SubSite.

Then I create a list programmaticaly, the list shows fine no problems. Then I also create couple of views to this list in another webpart along with some other stuff that should not have affect on the list itself (Some jquerry to show some info on hover etc). When I then add this webpart to the page, I get the error above. The strange thing is that if I create the list and activate the webpart on the site collection it shows fine with no errors (on http://sharepoint/sites/SiteCollection). All of this is running on a almoast clean sharepoint 2013 install. And I have no idea on how to find out of this issue. So I am hoping oune of you can help me out. I obviously tried too google the issue, and the best help I found was about an update. But I did not have that update installed, and I also tried to update to the latest sharepoint update with no luck.

If any other information is needed let me know and I will update this post.


Viewing all articles
Browse latest Browse all 25064

Trending Articles