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 28:         if (Request.QueryString["sub"]==null)
Line 29:         {
Line 30:             _Content.Controls.Add(LoadControl("Modules/ContentList.ascx", Request.QueryString["id"]));
Line 31:         }
Line 32:         else

Source File: e:\Web\HoaQuaOnline.com\Code\Modules\content.ascx.cs    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   System.Object.GetType() +0
   Nasa8x.Web.UI.xUserControl.LoadControl(String UserControlPath, Object[] constructorParameters) +86
   Modules_content.LoadControl() in e:\Web\HoaQuaOnline.com\Code\Modules\content.ascx.cs:30
   Modules_content.Page_Load(Object sender, EventArgs e) in e:\Web\HoaQuaOnline.com\Code\Modules\content.ascx.cs:9
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062