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 1075:
Line 1076:        DataTable dtmeta = new DataTable();
Line 1077:        adminhome.WebsiteId = Session["websiteid"].ToString();
Line 1078:        adminhome.pagename = "ManageHome";
Line 1079:        dtmeta = subagenthelper.EditHomeMeta(adminhome);

Source File: d:\HostingSpaces\softcloud\wls_site_lightV2\homeNew.aspx.cs    Line: 1077

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   homeNew.Editmeta() in d:\HostingSpaces\softcloud\wls_site_lightV2\homeNew.aspx.cs:1077
   homeNew.Page_Init(Object sender, EventArgs e) in d:\HostingSpaces\softcloud\wls_site_lightV2\homeNew.aspx.cs:80
   System.Web.UI.Control.OnInit(EventArgs e) +105
   System.Web.UI.Page.OnInit(EventArgs e) +15
   System.Web.UI.Control.InitRecursive(Control namingContainer) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1597


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