Server Error in '/' Application.

You are trying to retrive an offline page. This is not allowed in Cms Class

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.Exception: You are trying to retrive an offline page. This is not allowed in Cms Class

Source Error:


Line 22:         lang = GetLanguage();
Line 23:         this.metaDesc.Attributes["content"] = GetMetaDescription();
Line 24:         cmsPage = this.Cms.GetPageById(this.CmsPageID);
Line 25:         homePage = Cms.ListPagesBySearch(this.GetSectionLang().ID, new string[] { "Home" }, "", true).FirstOrDefault();
Line 26: 

Source File: e:\WWWNET\www.ignastour.com\MasterPages\MasterPage.master.cs    Line: 24

Stack Trace:


[Exception: You are trying to retrive an offline page. This is not allowed in Cms Class]
   ContentMe.Cms.CmsTools.GetPageById(Int32 ID) in C:\Users\n1ck.IGNAS\Documents\Visual Studio 2017\Projects\ContentMe.root\ContentMe.Cms\CmsTools.cs:1021
   MasterPages_MasterPage.Page_Load(Object sender, EventArgs e) in e:\WWWNET\www.ignastour.com\MasterPages\MasterPage.master.cs:24
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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