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

Discussion in 'ASP.NET Starter Kits' started by JRADVERTISING, Sep 13, 2007.

  1. Line 25 appears to be the issue because not all pages are working -- the same error message:

    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:


    Line 23: Protected Sub PasswordRecovery_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles PasswordRecovery.Init
    Line 24: Dim s As SiteSettings = SiteSettings.GetSharedSettings()
    Line 25: PasswordRecovery.MailDefinition.From = s.SiteEmailFromField
    Line 26: End Sub
    Line 27:


    Source File: E:\web\localsalesm\htdocs\Login.aspx.vb Line: 25

    Stack Trace:


    [NullReferenceException: Object reference not set to an instance of an object.]
    Login_aspx.PasswordRecovery_Init(Object sender, EventArgs e) in E:\web\localsalesm\htdocs\Login.aspx.vb:25
    System.Web.UI.Control.OnInit(EventArgs e) +2072044
    System.Web.UI.WebControls.PasswordRecovery.OnInit(EventArgs e) +11
    System.Web.UI.Control.InitRecursive(Control namingContainer) +321
    System.Web.UI.Control.InitRecursive(Control namingContainer) +198
    System.Web.UI.Control.InitRecursive(Control namingContainer) +198
    System.Web.UI.Control.InitRecursive(Control namingContainer) +198
    System.Web.UI.Control.InitRecursive(Control namingContainer) +198
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692

    Your help is appreciated

    Jack R

    Post Edited By Moderator (mjp [DASP]) : 11/2/2007 10:04:44 PM GMT
     

Share This Page