locked
Site crashes when a web part is added RRS feed

  • Question

  • SharePoint  site crashes while adding a list web part to site. any suggestion to make this web part work.



    • Edited by sp2120 Wednesday, June 18, 2014 6:11 PM
    Wednesday, June 18, 2014 6:11 PM

All replies

  • your web part is crashing when you add it on a page, make sure that you have deployed/copied/created all resources which your web part is looking for, it can be any resource object, list, dll reference or any other object.

    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

    Wednesday, June 18, 2014 6:34 PM
  • Unhandled exceptions in the web part crashes the page. Use try catch and assign the exception to a label on the webpart..

    for example:

    protected void Page_Laod(object sender, EventArgs e)

    {

    try

    {

    // your code

    }

    catch(Exception ex)

    {

    Label1.Text = ex.Message;

    }

    }

    Now you should be able to see the error on the webpart label.

    Also you can append ?contents=1 in the page url, and delete the webpart on the page.

    • Edited by Deepak.M Wednesday, June 18, 2014 7:50 PM
    Wednesday, June 18, 2014 7:23 PM
  • check the uls logs also
    Thursday, June 19, 2014 7:11 AM
  • One wsp is causing the issue, re tracking the solution resolved



    • Edited by sp2120 Monday, August 11, 2014 7:52 PM
    Monday, August 11, 2014 7:52 PM