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 20:     {
Line 21:         this.metaDesc.Attributes["content"] = GetMetaDescription();
Line 22:         cmsPage = this.Cms.GetPageById(this.CmsPageID);
Line 23:         homePage = Cms.ListPagesBySearch(this.GetSectionLang().ID, new string[] { "Home" }, "", true).FirstOrDefault();
Line 24:         

Source File: e:\WWWNET\lgbt.ignastour.com\MasterPages\MasterPage.master.cs    Line: 22

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\Michele Vianini\Documents\Visual Studio 2013\Projects\ContentMe.Root\ContentMe.Cms\CmsTools.cs:1021
   MasterPages_MasterPage.Page_Load(Object sender, EventArgs e) in e:\WWWNET\lgbt.ignastour.com\MasterPages\MasterPage.master.cs:22
   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