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 13: <script runat="server">
Line 14:     
Line 15:     Dim connectionString As String = WebConfigurationManager.ConnectionStrings("conVApkly").ConnectionString
Line 16:     Dim con As New SqlConnection(connectionString)
Line 17:     Dim cmdLogin As SqlCommand

Source File: C:\Inetpub\vhosts\worldofscience.in\httpdocs\VigyanApkeliye\Default.aspx    Line: 15

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.vigyanapkeliye_default_aspx..ctor() in C:\Inetpub\vhosts\worldofscience.in\httpdocs\VigyanApkeliye\Default.aspx:15
   __ASP.FastObjectFactory_app_web_pca8408f.Create_ASP_vigyanapkeliye_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