Server Error in '/Blog' 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:     string[] ArrMonth = new string[] { "January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
Line 15:     int iYear = DateTime.Now.Year;
Line 16:     SqlConnection strConnectionString = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionStringAdapt"].ToString());
Line 17:     protected void Page_Load(object sender, EventArgs e)
Line 18:     {

Source File: d:\Inetpub\vhosts\adapt-india.com\httpdocs\adapt-india.com\Blog\blog_master.master.cs    Line: 16

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   blog_master..ctor() in d:\Inetpub\vhosts\adapt-india.com\httpdocs\adapt-india.com\Blog\blog_master.master.cs:16
   ASP.blog_master_master..ctor() in d:\Inetpub\vhosts\adapt-india.com\tmp\blog\7d484d07\1897b7cb\App_Web_poyxcgzt.1.cs:0
   __ASP.FastObjectFactory_app_web_poyxcgzt.Create_ASP_blog_master_master() in d:\Inetpub\vhosts\adapt-india.com\tmp\blog\7d484d07\1897b7cb\App_Web_poyxcgzt.7.cs:0
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +269
   System.Web.UI.Page.get_Master() +68
   System.Web.UI.Page.ApplyMasterPage() +17
   System.Web.UI.Page.PerformPreInit() +57
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1255


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974