If you’re struggling with an "error while executing web parts in SharePoint", here's the information you're looking for. We've encountered this error and resolved it.
What is a Web Part?
Web Parts are ASP.NET controls, or “web widgets” that developers can program and add to a web page. They can be customized and displayed as a component or section on a web page or as a personalized user interface. As you can imagine, the possibilities with web parts are endless.
The Error
Recently, while we were working on web parts for a project, we encountered an error while rendering XSLT when any inbuilt list-view loaded. The error description was: “Error while executing web part: System. Null Reference Exception: Object reference not set to an instance of an object.”
Troubleshooting the Error
We tried multiple ways to get to the bottom of the problem which included the following:
- Option 1 – First, we assumed that this error generally occurs upon XSLT time-out. Therefore, we used PowerShell script to change the timeout value change.
- Option 2 – When the PowerShell script didn’t work, we restarted the server. No luck.
- Option 3 – After both options failed, we performed a cumulative update on the server
The problem stubbornly remained after all three attempts to resolve it--just thought we’d save you the time of trying these steps yourself.
Cause and Effect Diagram:

The Solution
Ultimately, after digging into a lot research, we found that a Windows KB2844286 update was causing this error. When we uninstalled this update, it resolved the problem.
This might work for you too.
Call us at 484-892-5713 or Contact Us today to schedule your free consultation, and discover how AllianceTek can help you unravel technology issues and increase your business’ prosperity.