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 244:    {
Line 245:        Admin.mode = 'F';
Line 246:        Admin.websiteid = Session["websiteid"].ToString();
Line 247:        Admin.IsActive = true;
Line 248:        datatable = AdminHelper.GetDynamicControl(Admin);

Source File: d:\HostingSpaces\softcloud\wls_site_lightV2\queryform.aspx.cs    Line: 246

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   queryform.Fetchcontrol() in d:\HostingSpaces\softcloud\wls_site_lightV2\queryform.aspx.cs:246
   queryform.Page_Init(Object sender, EventArgs e) in d:\HostingSpaces\softcloud\wls_site_lightV2\queryform.aspx.cs:35
   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