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 2473:        string body = string.Empty, emailid = string.Empty, emailwant = string.Empty;
Line 2474:
Line 2475:        emailid = ConfigurationManager.AppSettings["emailids"].ToString();
Line 2476:        emailwant = ConfigurationManager.AppSettings["emailWant"].ToString();
Line 2477:        string[] email_to = emailid.Split(',');

Source File: c:\WEBSITES\DESKTOP\bollywoodtadka2015\App_Code\Datautility.cs    Line: 2475

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Datautility.getException(String exception, String url, String pagename, String f_name, String hostname) in c:\WEBSITES\DESKTOP\bollywoodtadka2015\App_Code\Datautility.cs:2475
   _Default.left_section() in c:\WEBSITES\DESKTOP\bollywoodtadka2015\details.aspx.cs:412
   _Default.Page_Load(Object sender, EventArgs e) in c:\WEBSITES\DESKTOP\bollywoodtadka2015\details.aspx.cs:44
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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