none
Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.

    Question

  • I keep getting this error message when I modify a list in SharePoint Designer 2010.  I'm trying to modify a column and apply some conditional formatting.  each time i do this, it looks fine in SPD, so I save and close.  When I save and close I get the correlation ID errorm message. The other interesting thing is that this basically makes the view i'm working from unuseable. I'm also unable to make other basic changes in SPD to lists as I get the same problem.I looked up the log in ULS Viewer and it gave me the following:

    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.   

    at System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes)   

    at Microsoft.Xslt.STransform.GetCompiledTransform()   

    at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)

    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()   

    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)

    Can someone else help me determine what Might be going on?


    • Edited by dbrost Wednesday, July 10, 2013 11:13 PM sorry this might be in the wrong forum. I'm using SP2010 Enterprise, not 13
    Wednesday, July 10, 2013 11:12 PM

Answers

  • Hi to all,

    I Figured out ... the Windows KB2844286 is causing this in my case..

    I uninstalled this update and everything go back to work again.

    I wait microsoft pronunce about that.

    dbrost,

    Do you hav this update installed ?

    Regards,


    SharePoint Solution Architect

    Thursday, July 11, 2013 12:57 AM
  • OK got this to finally work!  Thanks everyone.  The important thing we needed to do was to "Hide" the update.  Just uninstalling it from server didn't work.

    Much thanks to all!

    • Marked as answer by dbrost Thursday, July 18, 2013 7:41 PM
    Thursday, July 18, 2013 4:08 PM

All replies

  • Same issue here,

    I noticed that after some windows updates do this.

    When i try to customize Xsl tag of the XsltListViewWebPart i get this error :

    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes)     at Microsoft.Xslt.STransform.GetCompiledTransform()     at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)


    SharePoint Solution Architect

    Wednesday, July 10, 2013 11:54 PM
  • Hi to all,

    I Figured out ... the Windows KB2844286 is causing this in my case..

    I uninstalled this update and everything go back to work again.

    I wait microsoft pronunce about that.

    dbrost,

    Do you hav this update installed ?

    Regards,


    SharePoint Solution Architect

    Thursday, July 11, 2013 12:57 AM
  • This solution worked for us....

    Thanks!!!!

    Thursday, July 11, 2013 7:38 AM
  • ... also for us. Thanks for saving a lot of time!It would be great if someone post here if the issue has been fixed by Microsoft for the KB.

    Thursday, July 11, 2013 9:07 AM
  • This works like a charm !!

    Great Job and Thanks a lot !!

    Himanshu Nigam

    Thursday, July 11, 2013 9:48 AM
  • You have saved us a lot of time, we also had SharePoint issues with this fix...

    Thanks for the good work!

    Thursday, July 11, 2013 12:32 PM
  • This solution worked.

    Note: the uninstall took over 30 minutes to complete.

    Thursday, July 11, 2013 2:52 PM
  • Screwed us up too.  That sucks.  Now we had to hide the update and come back to it later when/if Microsoft ever decides to get around to retracting, re-releasing the update - or unhide and allow it to roll in followed up by some followup fix for what this breaks.

    ARGHHHHHHHHHHHHHHH

    Thursday, July 11, 2013 4:47 PM
  • Hi SharePoint Architect. 

    I unistalled this update and I still receive the same error.  Then I went to a machine without this update, and it gave me the same correlation id error message. Glad this resolved some of the issues for you and other users, but I'm still at a loss as to why SPD is being so problematic!

    dbrost

    Thursday, July 11, 2013 6:46 PM
  • Uninstall Update then IISRESET

    Then your error will go away!

    Thank you Sergio !!


    TIA, Johnny

    Thursday, July 11, 2013 7:35 PM
  • Thanks!!!!

    works!

    Friday, July 12, 2013 4:49 AM
  • Perfect. Solved my issue too.
    Friday, July 12, 2013 10:02 AM
  • Hi dbrost,

    Let see if I understand, you mentioning SPD, i suposed that you refer to client machine right ?

    I refer the KB is causing problems on the server machine on the SharePoint Front end server.

    In my case, the page with webparts show perfectly on the design mode on SPD, but when i open the page on the browser the webpart stops to work and the correlation appears.

    I hope that helps you.

    Kindly Regards,

    Sérgio!


    SharePoint Solution Architect

    Friday, July 12, 2013 8:24 PM
  • Hi Sergio,

    Looks like the webpart error message still appears after IIS reset. Any thoughts on how to proceed from here?

    Friday, July 12, 2013 9:03 PM
  • This just started happening on our WFE as well.  I'm not sure what updates were done, but I will pass this post along so that we can hopefully fix this.


    Friday, July 12, 2013 10:41 PM
  • a million thanks...I saw my servers had installed stuff and thought I would have to uninstall each update, you saved me a lot of reboots!
    Sunday, July 14, 2013 1:34 AM
  • Thanks!! Saved me hours and hours of work!

    /A

    Monday, July 15, 2013 9:43 AM
  • I cannot believe this! Customers were calling me this morning 'every library is down, etc etc'. Google drove me to this place and indeed, uninstalling the update + rebooting the server did the trick. Thanks!

    Monday, July 15, 2013 10:06 AM
  • According to this, it looks like:

    KB2844286 is for Windows Server 2008 R2

    KB2844287 is for Windows Server 2008

    And uninstalling worked for us only after we rebooted the server as well.


    Mike

    Monday, July 15, 2013 4:37 PM
  • I uninstalled this Update ...44286 on our Windows Server 2008 R2 as well as my client machine.  I rebooted both and much to my dismay, am still receiving the error when attempting to modify a list view in SPD 2010.  The conditional formatting I'm applying looks great in Design view, but when I go to save it and view it in the browser, I get the message I've attached in a previous post.  I'm thinking that this is not a windows update problem for me....

    Monday, July 15, 2013 5:14 PM
  • Thanks!!!!!!!!!!!!! It's worked..........
    Monday, July 15, 2013 7:35 PM
  • dbrost,

    Sorry about my delay, is only one webpart that is presenting this error ? or all customized webparts is showing this error ?

    If is only one, can you send the <XSL> tag of that for my email ? sergiorru@hotmail.com

    I will try to help you.

    Regards,

    Sérgio.


    SharePoint Solution Architect

    Tuesday, July 16, 2013 12:20 AM
  • thanks. worked for me as well
    Tuesday, July 16, 2013 1:36 PM
  • this also worked for me, thank you very much for sharing this!


    Regards,
    Damian Sinay

    Wednesday, July 17, 2013 1:09 AM
  • We also have this problem.

    The update was uninstalled but automatically installed again after an overnight reboot! Grrrrrrr!

    I have now uninstalled again and will "hide" the update so that it doesn't reinstall on the next reboot.

    Will report back about whether it worked or not.

    Have Microsoft acknowledged that this patch has a problem yet?  I'm a bit wary about leaving it unpatched, but can't afford to have Sharepoint broken!

    Wednesday, July 17, 2013 11:24 AM
  • Hi to all,

    I Figured out ... the Windows KB2844286 is causing this in my case..

    I uninstalled this update and everything go back to work again.

    I wait microsoft pronunce about that.

    dbrost,

    Do you hav this update installed ?

    Regards,


    SharePoint Solution Architect


    thanks. Worked for me too (after 3 working days of pain)
    Wednesday, July 17, 2013 1:04 PM
  • OK got this to finally work!  Thanks everyone.  The important thing we needed to do was to "Hide" the update.  Just uninstalling it from server didn't work.

    Much thanks to all!

    • Marked as answer by dbrost Thursday, July 18, 2013 7:41 PM
    Thursday, July 18, 2013 4:08 PM
  • I am running into the exact issue.

    I have uninstalled the KB and rebooted, but I still get the error in the browser.

    In SPD it looks OK in design mode.

    Thursday, July 18, 2013 4:10 PM
  • Hi all,

    We are investigating and in the process of determining how best to resolve the issue as quickly as possible. If you are encountering this please reply to this thread with your configuration (OS, Sharepoint version and applied updates) and contact Microsoft Support (http://support.microsoft.com) for more information.

    Regards,


    Lee


    • Edited by Lee Coward Thursday, July 18, 2013 6:04 PM fixing sig
    Thursday, July 18, 2013 6:04 PM
  • We had the same issue: Server 2008R2 SharePoint 2010 14.0.6131.5003.  Uninstalling the update from all our front-ends and rebooting solved the issue.
    Friday, July 19, 2013 1:46 PM
  • Uninstalled and hid the patch and everything is working again.

    This is fine as a short-term solution, but obviously this isn't a viable longer term solution.  Any word on a Microsoft fix or even an acknowledgement of the problem?

    Monday, July 22, 2013 10:02 AM
  • Thanks. This fixed my issue.
    Tuesday, July 23, 2013 5:37 PM
  • There is another fix from Microsoft - http://support.microsoft.com/kb/2872441

    They suggest to install it to fix the error occured after the KB2844286. And it really helps.

    • Edited by Duke_Nsk Thursday, July 25, 2013 9:17 AM Additional info.
    • Proposed as answer by kurtvd Friday, August 09, 2013 11:34 AM
    Thursday, July 25, 2013 3:44 AM
  • Hello Everyone,


    It seems that the fix is released for this issue.


    Please look at “MORE INFIRMATION” Section under KB 2844286. Here is the excerpt.

     


    Known Issues

    Microsoft SharePoint applications may encounter errors while executing web parts. For more information, see the following Microsoft Knowledge Base article:

     

     Microsoft SharePoint applications may encounter errors while executing web parts 


    Also, below is the excerpt from kb 2872441

     


    You may receive the following exception while executing web parts in Microsoft SharePoint applications:

    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.

    at System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes)

    at Microsoft.Xslt.STransform.GetCompiledTransform()

    at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)

    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()

    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)

     

     

    This error occurs due to a functional issue in .NET Framework 3.5.1.

     

     

    To resolve this error, you must install the following update from Microsoft. The following files are available for download from the Microsoft Download Center:

     

     

    Download the NPD20SP2-KB2872441-x86.exe package now.

    Download the NPD20SP2-KB2872441-x64.exe package now.

    Download the NPD20SP2-KB2872441-ia64.exe package now.

    Thursday, July 25, 2013 9:24 AM
  • Hi folks,

    As some of have discovered we released a fix for the Sharpoint Webpart issue. Details and download links can be found at http://support.microsoft.com/kb/2872441 which will resolve the issue for Windows 7 SP1 and Windows Server 2008 R2 SP1. Based on forum posts and other feedback this is the most impacted configuration so we wanted to get it out first. Updates for other OS versions will follow.


    Lee

    .NET Program Management
    • Edited by Lee Coward Thursday, July 25, 2013 5:54 PM additional detail
    Thursday, July 25, 2013 5:47 PM
  • Microsoft has issued a hotfix to resolve the issues caused by MS13-052 (KB2844286).  Microsoft plans to re-release the impacted patch on a subsequent patch tuesday.  Here is the link for the hotfix until then.

    http://support.microsoft.com/kb/2872441

    Friday, July 26, 2013 12:49 PM
  • This solution ended my nightmare

    DVWP Stopped working this morning.

    Sunday, July 28, 2013 2:04 PM
  • Follow this link DVWP Stopped working becaouse Windows update

    This is another way to read sharepoint log Read Sharepoint log based on Correlation ID

    Sunday, July 28, 2013 2:08 PM
  • Thanks a million!!!!!
    Monday, July 29, 2013 8:55 AM
  • In contrary to the restart information in the kb-2872441, the hotfix does need a system restart.

    I had the same problem, installed the hotfix and restarted IIS. Problem not solved. After inspecting the patch in Windows Update it was still pending.

    Monday, July 29, 2013 10:36 AM
  • While this Error was caused by KB2844286, we installed the hotfix and this error stopped. However, an hour later we realized that all of our workflows site-wide started failing with "Failed to Start" Error. We also could not publish any new workflows to SharePoint from Designer. We got this error and have now uninstalled the hotfix and the security update from both our WFE/APP servers:

    RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="14" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="15" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="19" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ApplyActivation'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="20" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="21" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="48" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="49" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="125" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="126" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="404" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="405" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="529" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="530" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /><CompilerError Line="591" Column="2" Text="CreateInstance failed for type 'Microsoft.SharePoint.WorkflowActions.ImpersonationSequenceActivity'. Exception has been thrown by the target of an invocation.." /><CompilerError Line="592" Column="3" Text="Invalid data found while deserializing an object of type 'Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData'." /></Error>   

     at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   

     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)   

     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   

     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   

     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)

     

    • Proposed as answer by ADNewsom Monday, August 05, 2013 8:09 PM
    Monday, August 05, 2013 7:54 PM
  • We are experiencing this on Server 2012, based on the list in ms13-052 we have uninstalled KB2844289 as this seemed to be the closest match.

    After a restart all my affected web parts are working again.

    Thanks everyone for your advice!

    Thursday, August 08, 2013 2:51 AM
  • installing the hotfix worked also for us even if we installed .net 4.0


    • Edited by HIH83 Tuesday, August 13, 2013 8:59 AM
    Monday, August 12, 2013 2:06 PM
  • Hi All,

    A quick fix is to put the xslt in a file in a library or in the hive and use that instead of inline in your web part.

    Thursday, August 15, 2013 2:30 AM