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 infoError executing template "CookieWarning/TopPageWarning.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) at CompiledRazorTemplates.Dynamic.RazorEngine_ceeb68627dcf486d82f2b160cd39e2d8.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\CookieWarning\TopPageWarning.cshtml:line 42 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 Kwpn.Repository.Helpers 2 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 3 4 <div id="cookieWarningDiv"> 5 <script type="text/javascript"> 6 function setOptInCookie(optInLevel) { 7 var xmlhttp; 8 if (window.XMLHttpRequest) { 9 xmlhttp = new XMLHttpRequest(); 10 } 11 else { 12 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 13 } 14 xmlhttp.onreadystatechange = function () { 15 if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 16 var div = document.getElementById("cookieWarningDiv"); 17 div.parentNode.removeChild(div); 18 $("body").css("padding-top", "0").css("background-position", "center top"); 19 return false; 20 } 21 } 22 xmlhttp.open("GET", "/admin/public/CookieOptInLevelConfig.aspx?cmd=SetCookieOptInLevel&OptInLevel=" + optInLevel, true); 23 xmlhttp.send(); 24 return false; 25 } 26 </script> 27 28 <div class="row"> 29 <div class="col-xs-12 col-sm-6 col-sm-offset-3"> 30 <h1>@Translate("CookieWarning_Header")</h1> 31 <p>@Translate("CookieWarning_Info")</p> 32 <p><a id="navigation_cookieinfo" href="@NavigationHelper.GetCookiePageUrl()">@Translate("CookiePolicy")</a></p> 33 </div> 34 </div> 35 <div class="row"> 36 <div class="col-xs-12 col-sm-6 col-sm-offset-3"> 37 <div id="cookieButtons" class="row"> 38 <div class="col-sm-4"> 39 <a id="cookieAcceptNone" href="#" onclick="return setOptInCookie(0);"><i class="fa fa-chevron-right" aria-hidden="true"></i>@Translate("CookieWarning_DoNotAccept")</a> 40 </div> 41 <div class="col-sm-4"> 42 <a id="cookieAcceptFunctional" href="#" onclick="return setOptInCookie(1);"><i class="fa fa-chevron-right" aria-hidden="true"></i>@Translate("CookieWarning_FunctionelOnly")</a> 43 </div> 44 <div class="col-sm-4"> 45 <a id="cookieAcceptAll" class="pull-right" href="#" onclick="return setOptInCookie(2);"> 46 @Translate("CookieWarning_AcceptAll") <i class="fa fa-chevron-right" aria-hidden="true"></i> 47 </a> 48 </div> 49 </div> 50 </div> 51 </div> 52 </div>