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 16: public partial class MIS_Incoming : System.Web.UI.Page
Line 17: {
Line 18:     string strCon = System.Configuration.ConfigurationManager.ConnectionStrings["MISConnString"].ConnectionString;
Line 19:     bool isSQLInjection = false;
Line 20: 

Source File: e:\New Web\New Website\Website333\BSUWebsite\BSU\BSUWebSite\MIS_Incoming.aspx.cs    Line: 18

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MIS_Incoming..ctor() in e:\New Web\New Website\Website333\BSUWebsite\BSU\BSUWebSite\MIS_Incoming.aspx.cs:18
   ASP.mis_incoming_aspx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\00aedb97\df58d0ae\App_Web_dsx2she0.36.cs:0
   __ASP.FastObjectFactory_app_web_dsx2she0.Create_ASP_mis_incoming_aspx() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\00aedb97\df58d0ae\App_Web_dsx2she0.42.cs:0
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +131
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +43
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +374
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +127


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