Null Reference when run on the server RRS feed

  • Question

  • User1789244519 posted

    Hi, get the null reference exception when running the application from the server,when i run it on my local machines i dont get such error.I need your help what can i do?

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       extranet.expandasign.epages.net.agents.generatequote.productAddDlg_DialogClosed(Object sender, DialogResultEventArgs e) in c:\_development\applications\expand_a_sign\applications\extranet\expanda_extranet\agents\generatequote.aspx.cs:1145
       MetaBuilders.WebControls.DialogWindowBase.OnDialogClosed(DialogResultEventArgs e) +22
       MetaBuilders.WebControls.DialogWindowBase.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +38
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565



    Monday, February 1, 2010 4:12 AM


  • User-261937410 posted

    NULL Reference exception means that the you are trying to use an object's value without initialising it.

    You should debug to the point where this error occurs and should check the nullness of the object before accessing the value of object like:

    if (object != null)


         // Access object's value




       // Object is NULL


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 2, 2010 2:12 AM