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 323:                    Session("ReturnToPage") = Request.RawUrl
Line 324:                    ' Suraj S Issue 15370, 8/1/13 here we are getting the ReturnToPageURL in "URL" QueryString and passing on login page. 
Line 325:                    Response.Redirect(LoginPage + "?EventID=" & Request.QueryString("EventID").ToString(), False)
Line 326:                End If
Line 327:            End If

Source File: C:\inetpub\wwwroot\eBusiness\UserControls\Aptify_Custom__c\MeetingRegistration__c.ascx.vb    Line: 325

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Aptify.Framework.Web.eBusiness.ProductCatalog.MeetingRegistrationControl.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\eBusiness\UserControls\Aptify_Custom__c\MeetingRegistration__c.ascx.vb:325
   System.Web.UI.Control.OnLoad(EventArgs e) +98
   System.Web.UI.Control.LoadRecursive() +153
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4081


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0