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 15:     SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["AdeshUniversity"].ConnectionString);
Line 16:     SqlConnection conMaster = new SqlConnection(ConfigurationManager.ConnectionStrings["Adesh_Masters"].ConnectionString);
Line 17:     SqlConnection conAIMSR = new SqlConnection(ConfigurationManager.ConnectionStrings["Adesh_AIMSR"].ConnectionString);
Line 18:     protected void Page_Load(object sender, EventArgs e)
Line 19:     {

Source File: c:\inetpub\vhosts\adeshuniversity.ac.in\httpdocs\Faculty.aspx.cs    Line: 17

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Faculty..ctor() in c:\inetpub\vhosts\adeshuniversity.ac.in\httpdocs\Faculty.aspx.cs:17
   ASP.faculty_aspx..ctor() in c:\inetpub\vhosts\adeshuniversity.ac.in\tmp\root\ad79b7c4\64691e1b\App_Web_yhzjyhq0.10.cs:0
   __ASP.FastObjectFactory_app_web_yhzjyhq0.Create_ASP_faculty_aspx() in c:\inetpub\vhosts\adeshuniversity.ac.in\tmp\root\ad79b7c4\64691e1b\App_Web_yhzjyhq0.34.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +339
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


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