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 119:        _oCategory = cCategory.TryLoad(P.CategoryId);
Line 120:
Line 121:        P.ContentType = _oJob.ContentType;
Line 122:        //----------------------------------------
Line 123:        // If Job is not Loaded 

Source File: d:\Biz\Site\testbizcommunity\App_Control\Job\View.ascx    Line: 121

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.app_control_job_view_ascx.On_Load() in d:\Biz\Site\testbizcommunity\App_Control\Job\View.ascx:121
   Biz.Web.cContainerBase.OnLoad(EventArgs e) in D:\Biz\Repository\Test\Site\Biz.Web\Form\ContainerBase.cs:60
   System.Web.UI.Control.LoadRecursive() +89
   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