Error executing template "/Designs/SkanskaMaskin/Paragraph/_dialog_confirm_remove_project_member.cshtml"
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at CompiledRazorTemplates.Dynamic.RazorEngine_c06f6f86b1144c499a5ac98ac9e7bd7f.Execute() in D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\Paragraph\_dialog_confirm_remove_project_member.cshtml:line 8
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Dynamicweb.Environment 3 4 @{ 5 6 var userEmail = Dynamicweb.Context.Current.Request.GetString("useremail"); 7 8 var userID = int.Parse(Dynamicweb.Context.Current.Request.GetString("userid")); 9 10 var removeUserUrl = $"/dashboard/anvandare?removeUser=1&userid={userID}"; 11 12 <form id="DialogConfirmRemoveProjectMember" name="DialogConfirmRemoveProjectMember" method="post"> 13 <div class="FormGroup-section"> 14 <fieldset> 15 <legend class="FormGroup-heading">@Translate("remove_user_title")</legend> 16 <div class="Grid-cell"> 17 <div class="Grid Grid--withGutter"> 18 19 <div class="Grid-cell u-sizeFull"> 20 <div><strong>@userEmail</strong> @Translate("remove_user_body")</div> 21 </div> 22 23 <div class="Grid-cell u-size1of3"> 24 <div class="Input Input--fill Input--hasValue"> 25 <button type="submit" id="submitter" class="Button" formaction="@removeUserUrl">@Translate("remove")</button> <button type="button" class="Button Button--tertiary js-overlayClose">@Translate("cancel")</button> 26 </div> 27 </div> 28 </div> 29 </div> 30 </fieldset> 31 </div> 32 </form> 33 }