none
system.nullreferenceexception object reference not set to an instance of an object sharepoint

    Question

  • Hi,

    I am getting "system.nullreferenceexception object reference not set to an instance of an object. at ASP._65520b6b_4e51_4831_a307_bb5a844d49b7_968217546.Page_Load(Object sender, EventArgs e)" frequently on our public site on home page frequently. Some times on other pages also.

    After restarting Office Sharepoint server search service and Sharepoint services Administration service, site is working fine. But after some hours it is coming again. We have added exception handling code properly. Our site is running on MOSS 2007.

    Please provide solution..


    Thanks,
    Dhaval
    • Moved by Mike Walsh FIN Wednesday, March 10, 2010 6:51 AM not general (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Wednesday, March 10, 2010 6:25 AM

All replies

  • which object it is
    is it spweb or spsite
    have you dispose them well after use in your code
    Manish Sati
    Wednesday, March 10, 2010 8:15 AM
  • Hi,

    Thanks for reply.
    I have closed and disposed objects as below in the code.

    _web.Close();
    _web.Dispose();
    oSite.Close();
    oSite.Dispose();



    Regards,
    Dhaval
    Wednesday, March 10, 2010 10:30 AM