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 97:           'Dim standardcontrol1 as Control = Page.LoadControl ("/resources/ascx/_os70f_detail.ascx")
Line 98:           'plhOS70F.Controls.Add(standardcontrol1)
Line 99:              if os60f_record.os60flag1.toString() <> "Y" then
Line 100:                Dim standardcontrol1 as Control = Page.LoadControl ("/resources/ascx/_os70f_detail.ascx")
Line 101:                plhOS70F.Controls.Add(standardcontrol1)

Source File: c:\wwwroot\michaelpowellart.co.uk\www\resources\ascx\_os60f_detail.ascx    Line: 99

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.resources_ascx__os60f_detail_ascx.Page_Load(Object sender, EventArgs e) in c:\wwwroot\michaelpowellart.co.uk\www\resources\ascx\_os60f_detail.ascx:99
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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