Showing posts with label Web Part Error. Show all posts
Showing posts with label Web Part Error. Show all posts

Monday, December 24, 2012

Unable to display this web part. Error while executing web part: System.StackOverflowException: Operation caused a stack overflow in SharePoint 2010

In this post, I will explain an error user frequently see on their screen.
Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
Correlation ID: XXXX
.

After analyzing the log file in 14 hive I got the below error
Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.
After doing R & D I found that in August 2011 Cumulative update for SharePoint 2010, there is a timeout put on the XSLT transforms.
And after running the following commands at the PowerShell prompt.
 $farm = Get-SPFarm
$farm.XsltTransformTimeOut = 5
$farm.Update()
The page now appears correctly.