Error executing template "/Designs/SkanskaMaskin/Paragraph/_dialog_confirm_remove_project_member.cshtml"
System.ArgumentNullException: Value cannot be null.
Parameter name: String
   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_1e8543d2bdd34dbba2b50c9d10ee8e27.Execute() in D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\Paragraph\_dialog_confirm_remove_project_member.cshtml:line 13
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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