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 22: Partial Class _Default
Line 23:     Inherits System.Web.UI.Page
Line 24:     Dim url As String = System.Web.Configuration.WebConfigurationManager.AppSettings("webURL").ToString()
Line 25:     Dim obj As New UtilityADO()
Line 26:     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Source File: D:\Websites\LucknowPublicSchoolSector4B_Pro\kids\Default.aspx.vb    Line: 24

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Default..ctor() in D:\Websites\LucknowPublicSchoolSector4B_Pro\kids\Default.aspx.vb:24
   ASP.kids_default_aspx..ctor() in D:\Websites\LucknowPublicSchoolSector4B_Pro\kids\Default.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_s2cashls.Create_ASP_kids_default_aspx() +47
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062