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 19:                         Dictionary<int, string> ListaLegendas = new Dictionary<int, string>();
Line 20:                     %>
Line 21:                     <%=Html.SocialLinkButtons(!string.IsNullOrEmpty(Model.Publicacao.NmTitulo) ? Model.Publicacao.NmTitulo : string.Empty, Request.Url.ToString())%>
Line 22:                 </div>
Line 23:                 <div class="subtitulo">

Source File: d:\WWW\alerj_portal\Views\Visualizar\Noticia.aspx    Line: 21

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.views_visualizar_noticia_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in d:\WWW\alerj_portal\Views\Visualizar\Noticia.aspx:21
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +116
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +131
   ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\WWW\alerj_portal\Views\Shared\Site.Master:57
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +116
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +131
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +74
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9489


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