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 29: 
Line 30: 
Line 31:         litaddress1.Text = Application["Address1"].ToString();
Line 32:         litaddress2.Text = Application["Address2"].ToString();
Line 33:         litcity.Text = Application["City"].ToString();

Source File: e:\Inetpub\vhosts\idtindia.in\idt.ac.in\MasterPage.master.cs    Line: 31

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MasterPage.OnInit(EventArgs e) in e:\Inetpub\vhosts\idtindia.in\idt.ac.in\MasterPage.master.cs:31
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Control.InitRecursive(Control namingContainer) +312
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


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