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 45:         Page.Title = obj.Heading;
Line 46: 
Line 47:         long webSiteID = Node.GetRootID(usedModule.NodeID);
Line 48:         long SkinID = Skin.GetMainSkinID(webSiteID);
Line 49: 

Source File: d:\Websites\ujiroft.ac.ir\www\JiroCMS\Components\Module\Content\NewsViewer\Print.aspx.cs    Line: 47

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Jiro.CMS.Node.GetRootID(Int64 id, SqlServerConnection conn) in C:\Work\CMS-Ujiroft1400\Jiro\CMS\Node.cs:165
   Jiro.CMS.Node.GetRootID(Int64 id) in C:\Work\CMS-Ujiroft1400\Jiro\CMS\Node.cs:170
   JiroCMS_Components_Module_Content_NewsViewer_Print.Page_Load(Object sender, EventArgs e) in d:\Websites\ujiroft.ac.ir\www\JiroCMS\Components\Module\Content\NewsViewer\Print.aspx.cs:47
   System.Web.UI.Control.OnLoad(EventArgs e) +85
   System.Web.UI.Control.LoadRecursive() +128
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3711


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