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 10:     
Line 11:     <figure class="bannerEvento">
Line 12:     <%Html.RenderAction("_mapsPgInterno", "Localidade", new { idlocalidade = Model.Local }); %>
Line 13:     </figure>
Line 14: 

Source File: c:\inetpub\wwwroot\Views\Evento\Index.aspx    Line: 12

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.views_evento_index_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\Views\Evento\Index.aspx:12
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\Views\Shared\Site.Master:33
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +239
   System.Web.UI.Page.Render(HtmlTextWriter writer) +37
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +93
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974