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