The KWPN (Studbook of the Royal Dutch Sport Horse) is a Netherlands-based organization specializing in the breeding of jumpers, dressage horses, harness horses, and Gelder horses.
More infoReceive our newsletter filled with news, events and more!
Error executing template "Designs/Kwpn/UserManagement/CreateProfile/email_subscribe.cshtml" System.IO.IOException: The process cannot access the file 'D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\Translations.xml' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Dynamicweb.Rendering.Translation.Source.WriteDocument(XmlDocument document) at Dynamicweb.Rendering.Translation.Source.Save() at Dynamicweb.Rendering.Translation.Source.UpdateTranslationSource(Source source, IEnumerable`1 newKeys, String designName, IEnumerable`1 cultures) at Dynamicweb.Rendering.Template.TranslateText(String text, String defaultValue, String cultureName) at Dynamicweb.Rendering.TemplateBase`1.Translate(String text, String defaultValue) at CompiledRazorTemplates.Dynamic.RazorEngine_ac5823c73dad47b3b8b94f882681cd19.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\UserManagement\CreateProfile\email_subscribe.cshtml:line 40 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 @using System 2 @using Dynamicweb.Frontend 3 @using Dynamicweb.Modules.UserManagement 4 @using Kwpn.Models.Constants 5 @using Kwpn.Repository.Helpers 6 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 7 @foreach (LoopItem i in GetLoop("FormValidationErrors").Where(n => n.GetString("UserManagement:User.FormValidationError.FieldName") == "UserManagement_Form_Email")) 8 { 9 @i.GetValue("HeaderStart") 10 <div id="errormessages"> 11 <ul> 12 @i.GetValue("HeaderEnd") 13 @{ 14 var errorMessage = i.GetString("UserManagement:User.FormValidationError.Message"); 15 if ( 16 errorMessage.Equals("A user with the specified email already exists.", StringComparison.CurrentCultureIgnoreCase) || 17 errorMessage.Equals("User with specified email exists.", StringComparison.CurrentCultureIgnoreCase)) 18 { 19 errorMessage = Translate("NewsletterSubscription_EmailAreadyExists", errorMessage); 20 } 21 } 22 <li>@Translate("InputError", "Error in the input field") "@i.GetString("UserManagement:User.FormValidationError.FieldNiceName")": <br /><br /><i>@errorMessage</i></li> 23 @i.GetValue("FooterStart") 24 </ul> 25 26 </div> 27 @i.GetValue("FooterEnd") 28 } 29 30 @if (!LoginHelper.CurrentUserIsLoggedIn()) 31 { 32 // beoogde werking: 33 // systeem maakt een inactief account aan met EmailAllowed op true 34 // gebruiker krijgt mail met activatie link 35 // bevestigings link activeert het account 36 37 // Let op: vanaf core 8.9.1.4 komt er in de user module een vinkje bij "gebruik 1x", die moet gezet worden. 38 39 var reCaptchaSiteKey = Kwpn.Models.Constants.StringConstants.ApplicationVariables.RecaptchaSiteKey; 40 var useReCaptcha = !string.IsNullOrEmpty(reCaptchaSiteKey); 41 <form class="newsletter-subscription" name="UserManagementEditForm" id="NewsletterSubscriptionForm" action="/default.aspx" method="post" enctype="multipart/form-data"> 42 <input type="hidden" name="UserManagementForm" value="1" /> 43 <input type="hidden" id="UserManagementForm.DeleteImage" name="UserManagementForm.DeleteImage" /> 44 <input type="hidden" id="AccountActionNewsletterSubscription" name="AccountAction" value="NewsletterSubscription" /> 45 <input type="hidden" name="CurrentPageId" id="CurrentPageId" value="@Dynamicweb.Frontend.PageView.Current().Page.ID" /> 46 <div class="input-group"> 47 <input name="UserManagement_Form_Email" type="email" id="UserManagement_Form_Email" placeholder='@Translate("EmailaddressInput", "Your e-mail")' autocomplete="off" required /> 48 @* BEGIN HoneyPot *@ 49 <input class="backandonly" name="UserManagement_Form_Field" type="text" id="UserManagement_Form_Field" /> 50 @* END HoneyPot *@ 51 <span style="display: none;"> 52 <input name="@GetString("UserManagement:User.EmailAllowed.InputName")" type="checkbox" id="@GetString("UserManagement:User.EmailAllowed.InputName")" value="True" checked="checked" /> 53 @GetValue("UserManagement:User.EmailAllowed.Hidden.Input") 54 </span> 55 @if (useReCaptcha) 56 { 57 <button class="btn-newslettersubscription-visible g-recaptcha input-group-addon" 58 id="emailSubscribeSubmit" 59 name="emailSubscribeSubmit" 60 data-sitekey="@reCaptchaSiteKey" 61 data-callback="emailSubscribeCheckReCaptcha" 62 data-action="submit" 63 data-badge="inline"> 64 <i class="fa fa-chevron-right"></i> 65 </button> 66 <input type="submit" name="emailSubscribeSubmitter" id="emailSubscribeSubmitter" hidden /> 67 @SnippetStart("JavascriptsBottom") 68 <script> 69 function emailSubscribeCheckReCaptcha(token) { 70 document.getElementById("emailSubscribeSubmitter").click(); 71 } 72 73 $(document).ready(function () { 74 75 // handle recaptcha terms 76 $("#UserManagement_Form_Email", "#NewsletterSubscriptionForm").focusin(function () { 77 $("body > div > .grecaptcha-badge").css("visibility", "visible"); 78 }); 79 $("#UserManagement_Form_Email", "#NewsletterSubscriptionForm").focusout(function () { 80 $("body > div > .grecaptcha-badge").css("visibility", "hidden"); 81 }); 82 }); 83 </script> 84 @SnippetEnd("JavascriptsBottom") 85 } 86 else 87 { 88 <button class="btn-newslettersubscription-visible input-group-addon" type="submit" id="emailSubscribeSubmit"><i class="fa fa-chevron-right"></i></button> 89 } 90 </div> 91 </form> 92 93 <script> 94 $(document).ready(function () { 95 96 // try to submit form on enter in email field 97 $("#UserManagement_Form_Email", "#NewsletterSubscriptionForm").keydown(function (event) { 98 if (event.keyCode == 13) { 99 $(".btn-newslettersubscription-visible").click(); 100 return false; 101 } 102 }); 103 }); 104 </script> 105 } 106 else 107 { 108 var myAccountUrl = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.MyAccountPageId); 109 <a href="@myAccountUrl" class="more"><span>@Translate("MyDetails", "My details")</span><i class="fa fa-chevron-right"></i></a> 110 }
We request your agreement to the use of cookies on our website. More information is available on our cookie policy page.