Error executing template "Designs/co3-2020/_parsed/vismaco3-medarbejder.parsed.cshtml"System.ArgumentException: Could not write parsed file: E:\Dynamicweb.NET\Solutions\Co3\co3-2020.espresso4.dk\Files\Templates\Designs\co3-2020\_parsed\espresso.parsed.cshtml System.UnauthorizedAccessException: Access to the path 'E:\Dynamicweb.NET\Solutions\Co3\co3-2020.espresso4.dk\Files\Templates\Designs\co3-2020\_parsed\espresso.parsed.cshtml' is denied.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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)at Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(String value, String path, Boolean appendToFile, Encoding encoding)at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l)at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l)at Dynamicweb.Rendering.Designer.Layout.CheckParsed()at Dynamicweb.Rendering.Designer.Layout.GetLayoutByLocation(String path)at Dynamicweb.Content.Area.get_Layout()at Co3.Espresso.Website.Models.FrontEnd.Elements.EspressoArea..ctor(Area area, Item item)at Co3.Espresso.Website.Models.FrontEnd.Pages.PageBaseModel..ctor(Page page, Item dynamicwebItem)at Co3.Espresso.Website.TemplateBases.Pages.PageBase..ctor()at CompiledRazorTemplates.Dynamic.RazorEngine_09af639c92914da9bcd5d57e724ec2e6..ctor() in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\RazorEngine_hb3odw5x.pli\CompiledRazorTemplates.Dynamic.RazorEngine_09af639c92914da9bcd5d57e724ec2e6.cs:line 0at lambda_method(Closure )at RazorEngine.Templating.RazorEngineCore.CreateTemplate(ICompiledTemplate template, Object model, DynamicViewBag viewbag)at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)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 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase 2 @using System.IO 3 @using System.Web 4 @using System.Globalization 5 @using Dynamicweb.Frontend 6 @using Dynamicweb.Ecommerce.Common 7 @using Dynamicweb.Security.UserManagement 8 @{ 9 bool isUserAuthenticated = User.IsExtranetUserLoggedIn(); 10 11 string globalAreaLang = PageView.Current().Area.CultureInfo.TwoLetterISOLanguageName; 12 CultureInfo currencyCulture = new CultureInfo( Context.Currency.CultureInfo ); 13 string currencySeparatorDecimal = currencyCulture.NumberFormat.NumberDecimalSeparator; 14 string currencySeparatorInteger = currencyCulture.NumberFormat.NumberGroupSeparator; 15 string openGraphUrl = PageView.Current().SearchFriendlyUrl; 16 string openGraphImage = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host + Espresso.OpenGraphImage; 17 bool loadGoogleTagManager = !string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) && 18 !(Espresso.Area.Item.GoogleTagManagerDisableIfPerformanceTestIsDetected == "True" && HttpContext.Current.Request.UserAgent.ToLower().Contains( "lighthouse" )); 19 20 string globalValueUrl = GetGlobalValue("Global:Pageview.Url"); 21 22 if (GetGlobalValue("Global:Pageview.Url").IndexOf("?") > -1 ) 23 { 24 globalValueUrl = GetGlobalValue("Global:Pageview.Url").Substring(0, GetGlobalValue("Global:Pageview.Url").IndexOf("?")); 25 } 26 string canonicalPageView = String.Format("{0}://{1}{2}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host"), globalValueUrl); 27 string pageCanonical = PageView.Current().Page.MetaCanonical; 28 } 29 30 <!DOCTYPE html> 31 <html data-separator-decimal="@currencySeparatorDecimal" data-separator-integer="@currencySeparatorInteger" lang="@globalAreaLang"> 32 <head> 33 @GetValue( "CopyRightNotice" ) 34 <meta charset="utf-8"> 35 <meta content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui" name="viewport"> 36 <meta content="ie=edge" http-equiv="x-ua-compatible"> 37 <title>@GetValue("Title")</title> 38 @Espresso.CriticalCSS 39 @RenderSnippet( "webfonts" ) 40 <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" type="text/css" rel="stylesheet"> 41 <link as="style" href="/Files/Templates/Designs/co3-2020/_assets/_dist/css/default.css?v=0.35" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel"> 42 @Espresso.CriticalJS 43 <link href="https://cdnjs.cloudflare.com" rel="preconnect"> 44 <link href="https://www.googletagmanager.com" rel="preconnect"> 45 <link href="https://www.google-analytics.com" rel="preconnect"> 46 <link href="https://connect.facebook.net" rel="preconnect"> 47 <link href="@Espresso.Area.Item.Favicon" rel="shortcut icon"> 48 <meta content="@Espresso.DynamicwebPage.Description" name="description"> 49 50 @if ( string.IsNullOrEmpty( pageCanonical ) == true ) 51 { 52 if ( GetString( "DwPageID" ) == GetString( "DwAreaFirstPageID" ) ) 53 { 54 <link href="/" rel="canonical"> 55 } 56 else 57 { 58 <link href="@canonicalPageView" rel="canonical"> 59 } 60 } 61 62 63 @if ( Espresso.IsStagingUrl ) 64 { 65 <meta content="noindex,nofollow" name="robots"> 66 } 67 <meta content="@openGraphUrl" property="og:url"> 68 <meta content="@Espresso.OpenGraphTitle" property="og:title"> 69 <meta content="@Espresso.OpenGraphDescription" property="og:description"> 70 <meta content="@openGraphImage" property="og:image"> 71 <meta content="website" property="og:type"> 72 @if ( string.IsNullOrEmpty( Espresso.Area.Item.GoogleSiteVerification ) == false ) 73 { 74 <meta content="@Espresso.Area.Item.GoogleSiteVerification" name="google-site-verification"> 75 } 76 77 @if ( loadGoogleTagManager ) 78 { 79 <!-- Google Tag Manager --> 80 <script> 81 (function(w, d, s, l, i) { 82 w[l] = w[l] || []; 83 w[l].push({ 84 'gtm.start': 85 new Date().getTime(), 86 event: 'gtm.js' 87 }); 88 var f = d.getElementsByTagName(s)[0], 89 j = d.createElement(s), 90 dl = l != 'dataLayer' ? '&l=' + l : ''; 91 j.async = true; 92 j.src = 93 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 94 f.parentNode.insertBefore(j, f); 95 })(window, document, 'script', 'dataLayer', '@Espresso.Area.GoogleTagManagerID'); 96 </script> 97 <!-- End Google Tag Manager --> 98 } 99 <script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script>100 <script src="https://unpkg.com/@('@')lottiefiles/lottie-player@('@')latest/dist/lottie-player.js"></script>101 <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.13/lottie.min.js" integrity="sha512-srGxQe2w7s50+5/nNgEVKYtBm15zRylJwdjxYnGEZr3mmHFJKFjA/ImA2OKizVzoIDX8XISMHDI1+az9pnumbQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>102103 <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script>104 <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/CSSRulePlugin.min.js"></script>105 <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/ScrollTrigger.min.js"></script>106107 <script data-cookieconsent="ignore" async="" src="https://cdn.jsdelivr.net/gh/co3/jobconsole/jobpost.js"></script>108109 </head>110111 <body class="@Espresso.Item.CustomClasses" data-design="@Espresso.Area.DesignsFolderName" data-is-user-authenticated="@isUserAuthenticated.ToString().ToLower()" data-offset="160" data-spy="scroll" data-target="#scroll-spy">112113 <div class="cursor">114 <div class="cursor__follower">115 <svg class="cursor__plus hide" viewbox="0 0 50 50">116 <path d="M25,0C11.2,0,0,11.2,0,25c0,13.8,11.2,25,25,25s25-11.2,25-25C50,11.2,38.8,0,25,0z M31.7,26.3117 c0,0.3-0.2,0.5-0.6,0.5h-4.6v4.7c0,0.4-0.2,0.7-0.5,0.7h-1.9c-0.3,0-0.4-0.2-0.4-0.7v-4.7H19c-0.4,0-0.6-0.1-0.7-0.5l0-1.8118 c0-0.3,0.2-0.4,0.6-0.4h4.6v-4.7c0-0.4,0.1-0.7,0.4-0.7h1.9c0.3,0,0.4,0.2,0.4,0.7v4.7l4.7,0c0.4,0,0.6,0.2,0.6,0.5V26.3z" fill="#FFFFFF"></path>119 </svg>120 <svg class="cursor__close hide" viewbox="0 0 50 50">121 <path d="M25,0C11.2,0,0,11.2,0,25c0,13.8,11.2,25,25,25s25-11.2,25-25C50,11.2,38.8,0,25,0z M31.7,26.3122 c0,0.3-0.2,0.5-0.6,0.5h-4.6v4.7c0,0.4-0.2,0.7-0.5,0.7h-1.9c-0.3,0-0.4-0.2-0.4-0.7v-4.7H19c-0.4,0-0.6-0.1-0.7-0.5l0-1.8123 c0-0.3,0.2-0.4,0.6-0.4h4.6v-4.7c0-0.4,0.1-0.7,0.4-0.7h1.9c0.3,0,0.4,0.2,0.4,0.7v4.7l4.7,0c0.4,0,0.6,0.2,0.6,0.5V26.3z" fill="#230C2F"></path>124 </svg>125126 </div>127 </div>128129 @if ( loadGoogleTagManager )130 {131 <!-- Google Tag Manager (noscript) -->132 <noscript>133 <iframe height="0" src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" style="display: none; visibility: hidden" width="0"></iframe>134 </noscript>135 <!-- End Google Tag Manager (noscript) -->136 }137 @using Co3.Espresso.Website.Models.FrontEnd138 @using Co3.Espresso.Website.Models.FrontEnd.Settings139 @using Co3.Espresso.Website.Services140 @using Dynamicweb.Content.Items141 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase142143 @{144 Espresso.Canvas.Classes.AddClasses( "js-e-canvas is-loading" );145 if ( Espresso.Item.CanvasFullscreen == "True" )146 {147 Espresso.Canvas.Classes.AddClasses( "is-fullscreen" );148 }149150 var color = string.Empty;151 var image = string.Empty;152 var linkedIn = string.Empty;153 var email = string.Empty;154 if ( !string.IsNullOrEmpty( GetString( "Item.Color.Value" ) ) )155 {156 color = GetString( "Item.Color.Value" );157 }158 if ( !string.IsNullOrEmpty( GetString( "Item.Billede.Value" ) ) )159 {160 image = GetString( "Item.Billede.Value" );161 }162 if ( !string.IsNullOrEmpty( GetString( "Item.Linkedin.Value" ) ) )163 {164 linkedIn = GetString( "Item.Linkedin.Value" );165 }166 if ( !string.IsNullOrEmpty( GetString( "Item.Email.Value" ) ) )167 {168 email = GetString( "Item.Email.Value" );169 }170 }171172173174175 <script type="application/ld+json">176 {177 "@@context" : "http://schema.org",178 "@@type" : "Person",179 "name" : "@GetString( "Item.Navn.Value" )",180 "image" : "@GetString( "Item.Billede.Value" )",181 "sameAs": "@GetString( "Item.Linkedin.Value" )",182 "jobTitle" : "@GetString( "Item.Titel.Value" )",183 "worksFor": {184 "@@type": "Organization",185 "name": "Co3"186 },187 "telephone": "@GetString( "Item.Telefon.Value" )",188 "email": "@GetString( "Item.Email.Value" )"189 }190 </script>191192 <div class="bg-white e-loading-overlay e-page-loading-overlay is-loading js-e-page-loading-overlay">193 @RenderingService.Instance.PartialView( "_partials/loading-spinner.cshtml" )194 </div>195196 @RenderingService.Instance.PartialView( "_partials/webfonts.cshtml", Espresso )197198 <div class="@Espresso.Canvas.Classes">199 @RenderingService.Instance.PartialView( "_partials/header.cshtml", Espresso )200 @RenderingService.Instance.PartialView( "usermanagement/viewprofile/espresso-impersonate-user-msg.cshtml", Espresso )201202203 <article class="e-content-article">204 <section class="e-section js-e-section py-4 e-theme-@color" data-color="@color" style="min-height: 90vh;">205 <div class="container-fluid">206 <div class="row">207 <div class="col-12 col-lg-10 mx-auto">208 <div class="row">209 <div class="col-6 col-md-5">210 <div class="p-imagetext">211 <div class="p-img-container">212 <img src="/admin/public/getimage.ashx?Image=@image&Width=800&amp;Height=1200&amp;Format=jpg&amp;Quality=75&amp;Crop=0" class="p-img" alt="">213 </div>214 </div>215 </div>216 <div class="col-12 col-md-7 pt-4">217 <h2 class="mb-0">@GetString("Item.Navn.Value")</h2>218 <p class="mb-4 mt-1">@GetString("Item.Titel.Value")</p>219 <p class="mb-0">220 <a href="tel:@GetString(" item.telefon.value")"="">@GetString("Item.Telefon.Value")</a>221 </p>222223 <p class="mb-0">224 <a href="mailto:@email">@email</a>225 </p>226 @if ( string.IsNullOrEmpty( GetString("Item.Linkedin.Value") ) == false )227 {228 <p>229 <a href="//@linkedIn" target="_blank">Linkedin</a>230 </p>231 }232233 <span class="mt-3 d-block pt-2">234 @GetString("Item.Beskrivelse.Value")235 @GetString("Item.LandingssideBeskrivelse.Value")236 </span>237 </div>238 </div>239 </div>240 </div>241 </div>242 </section>243 </article>244245246 <article class="e-content-article" id="dwcontentfooter">247 <section class="d-flex e-content-footer e-section js-e-section p p-section e-theme-white" data-color="auto">248 <div class="container-fluid">249 <div class="h-100 row">250 <div class="col-12">251 <div class="h-100 row">252 <div class="align-self-center d-flex flex-wrap justify-content-center w-100">253 <div class="col-12 col-lg-12 col-md-12 col-sm-12 col-xl-12 p p-imagetext p-imagetext-tb" id="13351">254 <div class="row">255 <div class="col-12 p-txt-container">256 <p class="h1" style="text-align: center;">257 <a href="/Default.aspx?ID=5662">258 Sig hej til flere af os?259 </a><br><a href="/Default.aspx?ID=5662">Ja tak</a>260 </p>261 </div>262 </div>263 </div>264 </div>265 @if ( !string.IsNullOrEmpty( Espresso.Area.Item.FooterPageId ) )266 {267 <div class="align-self-end d-flex flex-wrap w-100">268 @RenderPageContent( int.Parse( Espresso.Area.Item.FooterPageId ) )269 </div>270 }271 </div>272 </div>273 </div>274 </div>275 </section>276 </article>277278 </div>279 <script type="text/javascript" data-cookieconset="ignore">280 (function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");281 vgo('setAccount', '25564280');282 vgo('setTrackByDefault', true);283284 vgo('process');285 </script>286 <script>287 window.dataLayer.push({288 'event':'ipEvent',289 'ipAddress' : '@Dynamicweb.Context.Current.Request.UserHostAddress'290 });291 </script>292293 <script async="" src="/Files/Templates/Designs/co3-2020/_assets/_dist/js/default.js?v=0.1.3"></script>294 @GetValue( "CopyRightNotice" )295 </body></html>