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 336:            <div class="vdp-header-portrait hidden-phone">
Line 337:                
Line 338:                 <% Response.Write(string.Format("<h1 class='vehicle-title entry-title'>{0} {1} {2} </h1>",auto.Año,auto.Marca,auto.Modelo)); %>
Line 339:            </div>
Line 340:            <div class="mainvehicleheaderbox visible-phone">

Source File: d:\Inetpub\vhosts\autossalas.com\httpdocs\DetalleAuto.aspx    Line: 338

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.detalleauto_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\Inetpub\vhosts\autossalas.com\httpdocs\DetalleAuto.aspx:338
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4562


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