Server Error in '/' Application.

A referência de objecto não foi definida como uma instância de um objecto.

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: A referência de objecto não foi definida como uma instância de um objecto.

Source Error:


Line 41:             if (doc != null)
Line 42:             {
Line 43:                 bool bolShowButton = (bool)doc.GetValue("ShowButton"); //bool
Line 44:                 if (bolShowButton)
Line 45:                     ShowButton();

Source File: c:\inetpub\wwwroot\IAPMEIwebsite\CMS\CMSTemplates\Iapmei\QUESTIONS\QuestionsAnswers.aspx.cs    Line: 43

Stack Trace:


[NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.]
   CMSTemplates_Iapmei_QUESTIONS_QuestionsAnswers.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\IAPMEIwebsite\CMS\CMSTemplates\Iapmei\QUESTIONS\QuestionsAnswers.aspx.cs:43
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   CMS.UIControls.ContentPage.OnLoad(EventArgs e) +49
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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