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:             
Line 20:             <%            
Line 21:             if (ShowPrice && RegContext!=null && RegContext.Formulaire.ChlListePrix.GetMontant(RegContext.Inscription)>0)
Line 22:             {
Line 23:                 %><%=T("PRIXBASE") %>: <span class="Prix"><%=InscriptionTemplate.CurrencyHtml(RegContext.Formulaire.ChlListePrix.GetMontant(RegContext.Inscription)) %></span><%

Source File: e:\sitesroot\0\Registration\Controls\RegistrationMainControl.ascx    Line: 21

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ChronoRace.Registration.State.PrixCollection.GetMontant(InscriptionsState inscription) in C:\chronorace\git\chronorace-git\Modules\Entities\ChronoRace.Registration.Object\State\Prix.cs:112
   ASP.registration_controls_registrationmaincontrol_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\sitesroot\0\Registration\Controls\RegistrationMainControl.ascx:21
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   ControlTemplate.Render(HtmlTextWriter writer) in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\ControlTemplate.cs:128
   FormControl.Render(HtmlTextWriter writer) in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\Forms\FormControl.cs:131
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +168
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.registration_registrationform_aspx.__RenderContent1(HtmlTextWriter __w, Control parameterContainer) in e:\sitesroot\0\Registration\RegistrationForm.aspx:162
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.material_master.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in e:\sitesroot\0\Material.master:313
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11661638
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +46
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +52
   ASP.material_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\sitesroot\0\Material.master:293
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +168
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   PageTemplate.Render(HtmlTextWriter writer) in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\PageTemplate.cs:1287
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4238


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