error in iis Object reference not set to an instance of an object. [Answered]RSS

2 replies

Last post Jul 29, 2020 02:57 PM by Roemesh

  • error in iis Object reference not set to an instance of an object.

    Jul 22, 2020 04:28 AM|Roemesh|LINK

    Hi Team,

    After hosting an application i am getting below mentioned error in IIS#

    Server Error in '/' Application.


    Object reference not set to an instance of an object.

    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.]
       ApplicationFails.clsUserAccess..ctor() +211
       ApplicationFails.BasePage.OnInit(EventArgs e) +90
       System.Web.UI.Control.InitRecursive(Control namingContainer) +172
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +490

  • Re: error in iis Object reference not set to an instance of an object.

    Jul 23, 2020 05:54 AM|Yuk Ding|LINK

    Hi Romesh,

    Could you reproduce this issue by trigger any control all the time? It is important to know in which condition the exception is thrown. Besides, how did publish your application? Have you tried some common troubleshooting steps like enable-32bit application, load user profile or change application pool identity, check application pool version?

    The exception have something to do with your UI control by it is uncertain how it is trigger because its a stack trace instead of  a dump file.

    Best Regards,

    Jokies Ding

    Best Regards,

    Jokies dING

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: error in iis Object reference not set to an instance of an object.

    Jul 29, 2020 02:57 PM|Roemesh|LINK

    it was db error.so in some browsers it works and somewhere it is failed