Error executing template "Designs/bleau-solutionset/_parsed/First_Agenda_Main.parsed.cshtml"
System.Exception: Request has failed. Url: /api/integration/publication/agenda/e70344ce-18c1-4c72-8429-e3a26c57dfb5. Message: Unauthorized
   at FirstAgendaImport.Service.HttpService.Get[T](String path, Boolean ignoreErrors)
   at FirstAgendaImport.Service.AgendaService.GetById(String agendaId)
   at CompiledRazorTemplates.Dynamic.RazorEngine_f38b4537aefb47b9b3e261e00431830c.Execute() in E:\dynamicweb.net\SolutionsCustom\lollandkommune.test.bleaudev.dk\Files\Templates\Designs\bleau-solutionset\_parsed\First_Agenda_Main.parsed.cshtml:line 241
   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 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 4 <!DOCTYPE html> 5 <html lang="@Pageview.Area.CultureInfo.TwoLetterISOLanguageName"> 6 <head> 7 8 <meta charset="utf-8"> 9 <meta name="viewport" content="width=device-width, initial-scale = 1.0"> 10 <meta name="google-site-verification" content="V3fEHGr3Eb00bLHm3OHAZ8D3vh-ZqHn0ioU_wxxNMGs"> 11 <title>@GetValue("Title")</title> 12 @GetValue("MetaTags") 13 @GetValue("CopyRightNotice") 14 15 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles.min.css" media="screen"> 16 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/print.min.css" media="print"> 17 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/socicon/socicon.css" media="screen"> 18 <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> 19 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/svg-inject.min.js"></script> 20 21 @RenderSnippet("StyleSheetHead") 22 @RenderSnippet("StyleSheet") 23 @RenderSnippet("SeptimaCSS") 24 25 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)"))){ 26 <link href='@GetString("Item.Area.Custom_CSS_Url")' rel="stylesheet"> 27 } 28 29 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) { 30 <!-- Google Tag Manager --> 31 <script>(function (w, d, s, l, i) { 32 w[l] = w[l] || []; w[l].push({ 33 'gtm.start': 34 new Date().getTime(), event: 'gtm.js' 35 }); var f = d.getElementsByTagName(s)[0], 36 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 37 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 38 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> 39 <!-- End Google Tag Manager --> 40 } 41 42 <link rel="shortcut icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Favicon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 43 <link rel="apple-touch-icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Apple_touch_icon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 44 45 <!-- www.Cludo.com search start JS --> 46 <!--[if lte IE 9]> 47 <script 48 src="https://api.cludo.com/scripts/xdomain.js" 49 slave="https://api.cludo.com/proxy.html" 50 type="text/javascript"></script> 51 <![endif]--> 52 <!-- www.Cludo.com search end JS --> 53 <!-- www.Cludo.com search start CSS --> 54 <link href="//customer.cludo.com/assets/185/1337/cludo-search.min.css" type="text/css" rel="stylesheet"> 55 <!-- www.Cludo.com search end CSS --> 56 57 @GetValue("Stylesheets") 58 @GetValue("Javascripts") 59 </head> 60 @{ 61 62 var bodyclass=""; 63 string Cpage = GetString("DwPageName"); 64 65 if (Cpage.Contains("Forside")) 66 { 67 bodyclass = "frontpage "; 68 } 69 70 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Color"))) 71 { 72 bodyclass += GetString("Item.Area.Color"); 73 } 74 75 bodyclass = bodyclass.Trim(); 76 } 77 <body class="@bodyclass"> 78 <a class="skip-main hidden-print" href="#Hovedindhold">Skip til hoved indholdet</a> 79 <h1 id="main-page-title">Velkommen til @GetGlobalValue("Global:Area.Name")</h1> 80 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) { 81 <!-- Google Tag Manager (noscript) --> 82 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 83 <!-- End Google Tag Manager (noscript) --> 84 } 85 <div class="body-wrapper"> 86 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 87 @using Dynamicweb.Rendering; 88 @using System.Collections; 89 @using System.Globalization; 90 91 <header> 92 <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 93 <ul class="container text-right hidden-print"> 94 @GetValue("DwNavigation(servicenavigation)") 95 <li class="hidden-xs hidden-sm"><a href="http://www.adgangforalle.dk/" title="Audio" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> 96 <li class="hidden-xs hidden-sm"><a href="#" title="print" id="printicon" class="print-icon">Print</a></li> 97 </ul> 98 </section> 99 <div class="navbar hidden-print" role="navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 100 <div class="container top-nav" id="nav-wrapper"> 101 <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button"> 102 </button> 103 <nav aria-label="Mobile Menu"> 104 @GetValue("DwNavigation(mobilemenu)") 105 </nav> 106 <div class="navbar-header col-xs-6 col-md-3"> 107 @if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { 108 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))){ 109 <a class="navbar-brand" href="/" title='@GetString("Item.Area.NameOrganisation")'> 110 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")'> 111 </a> 112 } 113 }else{ 114 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) 115 { 116 <a class="navbar-brand" href="/" title='@Translate("Sitename", "Bleauprint government")'> 117 <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")'> 118 </a> 119 }else{ 120 <a class="navbar-brand logo-image" href="/" title=""></a> 121 } 122 } 123 </div> 124 125 <nav class="col-sm-5 col-md-8 nav-top hidden-print" aria-label="Desktop Menu"> 126 @GetValue("DwNavigation(menu)") 127 </nav><!-- /.nav-collapse --> 128 129 @inherits RazorTemplateBase< RazorTemplateModel < Template > > 130 @using Dynamicweb.Rendering 131 132 <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> 133 <a href="" class="collapsed" title="Søg"></a> 134 </div> 135 <div id="search-boxTop" class="search-drop search-form"> 136 @SnippetStart("StyleSheetHead") 137 <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> 138 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> 139 @SnippetEnd("StyleSheetHead") 140 141 @*<form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> 142 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 143 <div id="cludo-search-form" class="search-area"> 144 <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> 145 <input type="submit" value="Søg" class="search-button" title="Søg"> 146 </div> 147 </form>*@ 148 149 <div action="" accept-charset="utf-8" id="SearchFormTop"> 150 <input type="hidden" name="ID" value='326'> 151 <div id="cludo-search-form" class="search-area"> 152 <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='Skriv her hvad du s&oslash;ger...' data-error='S&oslash;g p&aring; sitet' type="text" name="q"> 153 <input type="submit" value="Søg" class="search-button" title="Søg"> 154 </div> 155 </div> 156 </div> 157 158 </div><!-- /.container --> 159 </div><!-- /.navbar --> 160 </header> 161 162 <div class="navbar visible-print"> 163 <div class="container top-nav"> 164 <div class="navbar-header col-xs-6 col-md-4"> 165 <div class="visible-print"> 166 <div class="navbar-brand"> 167 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) 168 { 169 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")'> 170 171 } 172 </div> 173 </div> 174 </div> 175 </div> 176 </div> 177 178 <div class="selvbetjening-wrapper hidden-print"> 179 <div id="selvbetjening-btn" title='@Translate("SelvbetjeningText", "Selvbetjening")'>@Translate("Selvbetjening", "Selvbetjening")</div> 180 181 <div class="selvbetjening-links clearfix"> 182 183 <!-- <ul class="dwnavigation" title="Selfbetjening" id="selfservice-green" data-settings="parenttag:Selvbetjening;endlevel:2;expandmode:Path;template:selfserviceNavigation.xslt;"></ul> --> 184 185 <ul title="Selfbetjening" id="selfservice-green"> 186 @{ 187 188 var entriesList = GetLoop("Item.Area.Entries_Item_List"); 189 190 foreach (var e in entriesList) 191 { 192 var title = e.GetString("Item.Area.Entries_Item_List.Title.Value"); 193 var type = e.GetString("Item.Area.Entries_Item_List.Type.Value"); 194 var href = e.GetString("Item.Area.Entries_Item_List.Link_Url.Value"); 195 196 <li> 197 <a href="@href" target="_blank" title="@title"> 198 <img class="svg-inject" src="@type" alt="Ikon @title" onload="SVGInject(this)"> 199 @title 200 </a> 201 </li> 202 } 203 } 204 </ul> 205 206 207 </div> 208 </div> 209 <div id="Hovedindhold"> 210 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 211 @using Dynamicweb.Rendering; 212 @using Dynamicweb.Content.Items; 213 @using System.Web; 214 @using System.Web.UI; 215 @using FirstAgendaImport.Service; 216 217 218 219 @{ 220 221 string pageLinksTitle = GetString("Item.Page.Title"), 222 textColor = GetString("Item.Page.TextColor.Value"), 223 hideGreyBox = GetString("Item.Page.HideGreyBox.Value"), 224 isUdvalgPage = GetString("Item.Page.UdvalgPage.Value"), 225 isLevelFour = GetString("DwPageName_4"), 226 currentUrl = HttpContext.Current.Request.Url.AbsoluteUri.ToString(), 227 pageTitle = GetString("DwPageName"); 228 229 230 string infoBorger = string.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "infoBorger" : ""; 231 string textStyle = string.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "" : "color:#000"; 232 string committeeid = currentUrl.Contains("committeeId") ? "200px" : "400px"; 233 var isPdf = System.Web.HttpContext.Current.Request["ispdf"] == "true"; 234 var isPdfHeader = System.Web.HttpContext.Current.Request["ispdfheader"] == "true"; 235 236 var agendaId = System.Web.HttpContext.Current.Request["agendaId"]; 237 FirstAgenda.Api.Model.Agenda agenda = null; 238 if (!string.IsNullOrEmpty(agendaId)) 239 { 240 var agendaService = new AgendaService(); 241 agenda = agendaService.GetById(agendaId); 242 } 243 } 244 245 <script> 246 $(function () { 247 onLoadExtraBox(); 248 249 @{ 250 var request = HttpContext.Current.Request; 251 var response = HttpContext.Current.Response; 252 } 253 setTimeout(dothis, 500); 254 function dothis(){ 255 $('#qval').val("@request["q"]"); 256 $('#qval').trigger("change") 257 } 258 }); 259 </script> 260 261 @SnippetStart("StyleSheetHead") 262 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/FirstAgendaFull.min.css?vs=2" media="screen"> 263 @SnippetEnd("StyleSheetHead") 264 265 266 <!--Breadcrumb grey line--> 267 <div class="grey-box leftSidebar fullWidth" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 268 269 <!--Breadcrumb--> 270 <div class="container leftSidebar-subpage hidden-print"> 271 <div class="breadcrumb text-right col-xs-12"> 272 <nav aria-label="Breadcrumb navigation"> 273 @GetValue("DwNavigation(Breadcrumb)") 274 </nav> 275 </div> 276 </div> 277 </div> 278 279 280 281 <div class="leftSidebar" id="centralContentDagsordner"> 282 <div class="leftSidebar-subpage dagsordner"> 283 <div class="col-xs-12 page-title"> 284 <!--h1 class="noxPadding title container" id="pageTitle">@(agenda == null ? GetString("DwPageName") : agenda.Name)</h1--> 285 <h1 class="noxPadding title container" id="pageTitle">@(agenda != null && agenda.Name == "Intet angivet" ? "Referat" : GetString("DwPageName"))</h1> 286 287 @if(!String.IsNullOrEmpty(GetString("DwContent(fullwidthColumn)"))){ 288 <div class="col-xs-12 xclearfix main-content container" id="fullwidthColumn">@GetValue("DwContent(fullwidthColumn)")</div> 289 } 290 291 @if (String.IsNullOrEmpty(GetString("DwContent(centralContainerDagsordner)"))) 292 { } 293 <div class="noxPadding"> 294 <section id="centralContainerDagsordner" class="col-xs-12 noxPadding" role="list" aria-labelledby="centralContainerDagsordner"> 295 <div id="centralContentDagsordner" class="noxPadding">@GetValue("DwContent(centralContentDagsordner)")</div> 296 </section> 297 </div> 298 299 300 </div> 301 </div> 302 </div> 303 </div> 304 305 </div> 306 <footer class="row"> 307 <section class="container footer-wrapper"> 308 <div class="row col-container" id="footerSections"> 309 <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print col"> 310 <h1>@Translate("QuickLinks", "Quick links")</h1> 311 @GetValue("DwNavigation(quicklinks)") 312 </div> 313 <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard col"> 314 <span class="fn hidden"> 315 <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> 316 <span class="additional-name"></span> 317 <span class="family-name"></span> 318 </span> 319 <div class="fn org"><h1>@GetString("Item.Area.NameOrganisation")</h1></div> 320 <div class="adress"> 321 <div class="street-address">@GetString("Item.Area.StreetAddress")</div> 322 323 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) 324 { 325 <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> 326 } 327 328 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) 329 { 330 <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> 331 } 332 333 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) 334 { 335 <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> 336 } 337 338 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) 339 { 340 <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> 341 } 342 343 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) 344 { 345 <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> 346 } 347 </div> 348 </div> 349 <div class="col col-xs-12 col-sm-4 col-md-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> 350 <h1 itemprop="name">@Translate("Borgerservice 3. kolonne", "Borgerservice åbningstider")</h1> 351 <ul class="oh-highlight-day"> 352 @foreach (var item in GetLoop("Item.Area.OpeningHours2")) 353 { 354 <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours2.Days")-@item.GetValue("Item.Area.OpeningHours2.OpenHour")'>@item.GetValue("Item.Area.OpeningHours2.Days")<span>@item.GetValue("Item.Area.OpeningHours2.OpenHour")</span></li> 355 } 356 </ul> 357 358 </div> 359 <div class="col-xs-12 col-sm-4 col-md-3 work-time oh-day col" itemscope="" itemtype="http://schema.org/CivicStructure"> 360 <h1 itemprop="name">@Translate("Borgerservice 4. kolonne", "Borgerservice åbningstider")</h1> 361 <ul class="oh-highlight-day"> 362 @foreach (var item in GetLoop("Item.Area.OpeningHours")) 363 { 364 <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> 365 } 366 </ul> 367 368 </div> 369 </div> 370 </section> 371 </footer> 372 <div class="bgr-opacity"></div> 373 374 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.js"></script> 375 <!-- <script type="text/javascript" src="assets/javascripts/infinityScroll.min.js"></script> --> 376 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/bootstrap/js/bootstrap.min.js"></script> 377 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/main.min.js"></script> 378 379 <!-- Cookie --> 380 <script id="CookieConsent" src="//policy.cookieinformation.com/uc.js" data-cbid="35d3721c-b5d3-463d-b982-a8b4ae00f47e" type="text/javascript"></script> 381 382 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) 383 { 384 <text> 385 <script> 386 var _gaq = [['_setAccount', '@GetValue("Item.Area.Google_Analytics_ID")'], ['_trackPageview']]; 387 (function(d, t) { 388 var g = d.createElement(t), 389 s = d.getElementsByTagName(t)[0]; 390 g.async = true; 391 g.src = '//www.google-analytics.com/ga.js'; 392 s.parentNode.insertBefore(g, s); 393 })(document, 'script'); 394 </script> 395 </text> 396 397 } 398 @RenderSnippet("JavaScriptBottom") 399 400 <!-- www.Cludo.com Search body init script start --> 401 <script type="text/javascript" src="//customer.cludo.com/scripts/bundles/search-script.min.js"></script> 402 <script> 403 var CludoSearch; 404 (function () { 405 var cludoSettings = { 406 customerId: 185, 407 engineId: 11034, 408 searchUrl: "/soegeresultat", 409 searchInputs: ["cludo-search-form", "cludo-search-content-form", "cludo-search-content-form-second-box", "SearchForm"], 410 initSearchBoxText: "", 411 loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loader flere resultater' class='loading' role='progressbar' /><div class='loading-more-text'></div>", 412 endlessScroll: { 413 stopAfterPage: 2, 414 resultsPerPage: 10, 415 bottomOffset: 700 416 }, 417 language: "da" 418 }; 419 CludoSearch = new Cludo(cludoSettings); 420 CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; 421 CludoSearch.init(); 422 })(); 423 </script> 424 <!-- www.Cludo.com Search body init script start --> 425 426 <!-- SiteImprove Script Start --> 427 <script type="text/javascript"> 428 (function (d,t) { 429 var sz =d.createElement(t);sz.type='text/javascript'; sz.async = true; 430 sz.src='//ssl.siteimprove.com/js/siteanalyze_2564.js'; 431 var s = document.getElementsByTagName(t)[0]; s.parentNode.insertBefore(sz, s); 432 })(document,'script'); 433 </script> 434 <!-- SiteImprove Script End --> 435 436 </body> 437 </html> 438