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: public partial class ChemistryForm : System.Web.UI.Page
Line 16: {
Line 17:     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["FORUMCONNECT"].ToString());
Line 18:     protected void Page_Load(object sender, EventArgs e)
Line 19:     {

Source File: g:\pleskvhosts\pmu.edu\httpdocs\F\ChemistryForm.aspx.cs    Line: 17

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ChemistryForm..ctor() in g:\pleskvhosts\pmu.edu\httpdocs\F\ChemistryForm.aspx.cs:17
   ASP.f_chemistryform_aspx..ctor() in g:\pleskvhosts\pmu.edu\tmp\root\e418c94a\a511adea\App_Web_fd3wvkfx.8.cs:0
   __ASP.FastObjectFactory_app_web_fd3wvkfx.Create_ASP_f_chemistryform_aspx() in g:\pleskvhosts\pmu.edu\tmp\root\e418c94a\a511adea\App_Web_fd3wvkfx.26.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +104
   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) +39
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +386
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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