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 14: public partial class UserControl_EMPHitCounterControl : System.Web.UI.UserControl
Line 15: {
Line 16:     string FileUploadPath_EMPVisitorCount = System.Configuration.ConfigurationManager.AppSettings["FileUploadPath_EMPVisitorCount"].ToString();
Line 17: 
Line 18:     int totalDigits = 8;

Source File: g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\UserControl\EMPHitCounterControl.ascx.cs    Line: 16

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   UserControl_EMPHitCounterControl..ctor() in g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\UserControl\EMPHitCounterControl.ascx.cs:16
   ASP.usercontrol_emphitcountercontrol_ascx..ctor() in c:\windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4e322549\446c26ea\App_Web_flnsjzv3.0.cs:0
   ASP.employeemasterpage_master.__BuildControlEMPHitCounterControl1() in g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\EmployeeMasterPage.master:132
   ASP.employeemasterpage_master.__BuildControlform1() in g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\EmployeeMasterPage.master:33
   ASP.employeemasterpage_master.__BuildControlTree(employeemasterpage_master __ctrl) in g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\EmployeeMasterPage.master:1
   ASP.employeemasterpage_master.FrameworkInitialize() in g:\pleskvhosts\stpaulfeeonline.com\onlinebnn.com\EmployeeMasterPage.master.cs:912308
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1321
   System.Web.UI.Page.get_Master() +65
   System.Web.UI.Page.ApplyMasterPage() +18
   System.Web.UI.Page.PerformPreInit() +64
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +334


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