Error executing template "Designs/exhibition_site/_parsed/espresso.parsed.cshtml"
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'ItemType_Event'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at Dynamicweb.Data.Database.CreateDataReader(IDbCommand command, CommandBehavior behavior)
at Dynamicweb.Data.Database.CreateDataReader(CommandBuilder commandBuilder, IDbConnection connection, IDbTransaction transaction, CommandBehavior behavior, Int32 commandTimeout)
at Dynamicweb.Data.Database.CreateDataReader(CommandBuilder commandBuilder, IDbConnection connection, IDbTransaction transaction, Int32 commandTimeout)
at Dynamicweb.Content.Items.Queries.Repository.SelectInternal(IEnumerable`1 ids, Query query)
at Dynamicweb.Frontend.UrlProviders.ItemTypeProvider.GetMappings()
at Dynamicweb.Frontend.UrlProviders.Handler.GetUrls()
at Dynamicweb.Frontend.UrlProviders.Handler.Initialize()
at Dynamicweb.Frontend.UrlProviders.Handler.HandleModuleUrl(String& url, String& querystring, String alternatekey)
at Dynamicweb.Frontend.SearchEngineFriendlyURLs.ResolveQueryString(String fullQueryString, Int32 pageid, String alternatekey)
at Dynamicweb.Frontend.PageView.get_SearchFriendlyUrl()
at CompiledRazorTemplates.Dynamic.RazorEngine_576fd0897aa94243a5781fe49ef6c2ea.Execute() in E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\_parsed\espresso.parsed.cshtml:line 16
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()
ClientConnectionId:815505f6-82e0-4e9f-94c4-0a1e1cee80b9
Error Number:208,State:1,Class:16

1 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase @using System.IO @using System.Web @using System.Globalization @using Co3.Espresso.Website.Services @using Dynamicweb.Frontend @using Dynamicweb.Ecommerce.Common @using Dynamicweb.Security.UserManagement @{ bool isUserAuthenticated = User.IsExtranetUserLoggedIn(); string globalAreaLang = PageView.Current().Area.CultureInfo.TwoLetterISOLanguageName; int globalAreaId = PageView.Current().Area.ID; CultureInfo currencyCulture = new CultureInfo( Context.Currency.CultureInfo ); string currencySeparatorDecimal = currencyCulture.NumberFormat.NumberDecimalSeparator; string currencySeparatorInteger = currencyCulture.NumberFormat.NumberGroupSeparator; string openGraphUrl = PageView.Current().SearchFriendlyUrl; bool loadGoogleTagManager = !string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) && !(Espresso.Area.Item.GoogleTagManagerDisableIfPerformanceTestIsDetected == "True" && HttpContext.Current.Request.UserAgent.ToLower().Contains( "lighthouse" )); string hasCookiebot = PageView.Current().Area.Item["Cookiebot"]?.ToString(); string cookieBotId = PageView.Current().Area.Item["CookieBot_ID"]?.ToString(); bool isProduct = !string.IsNullOrEmpty(HttpContext.Current.Request["productId"]); string profileProductCompanyName = RenderSnippet("profileProductCompanyName").ToString(); string profileProductCompanyDescription = RenderSnippet("profileProductCompanyDescription").ToString(); string profileProductCompanyLogo = RenderSnippet("profileProductCompanyLogo").ToString(); string openGraphTitle = isProduct ? profileProductCompanyName : Espresso.OpenGraphTitle; string openGraphDescription = isProduct ? profileProductCompanyDescription : Espresso.OpenGraphDescription; string metaDescription = isProduct ? profileProductCompanyDescription : Espresso.DynamicwebPage.Description; string openGraphImage = isProduct ? HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host + profileProductCompanyLogo : HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host + Espresso.OpenGraphImage; } <!DOCTYPE html> <html lang="@globalAreaLang" data-separator-integer="@currencySeparatorInteger" data-separator-decimal="@currencySeparatorDecimal"> <head> @GetValue("CopyRightNotice") <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui" name="viewport"> <meta content="ie=edge" http-equiv="x-ua-compatible"> <link href="https://cdnjs.cloudflare.com" rel="preconnect"> <link href="https://www.googletagmanager.com" rel="preconnect"> <link href="https://www.google-analytics.com" rel="preconnect"> <link href="https://connect.facebook.net" rel="preconnect"> <title>@GetValue("Title")</title> @Espresso.CriticalCSS @RenderingService.Instance.PartialView("_partials/webfonts.cshtml", Espresso) <link href="/Files/Templates/Designs/exhibition_site/_assets/_dist/css/default.css?v=2.7" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> @Espresso.CriticalJS <link rel="shortcut icon" href="@Espresso.Area.Item.Favicon"> <meta name="description" content="@metaDescription"> @GetValue("MetaTags") @if (Espresso.IsStagingUrl) { <meta content="noindex,nofollow" name="robots"> } <meta property="og:url" content="@openGraphUrl"> <meta property="og:title" content="@openGraphTitle"> <meta property="og:description" content="@openGraphDescription"> <meta property="og:image" content="@openGraphImage"> <meta property="og:type" content="website"> @if (globalAreaId == 36) { <meta name="p:domain_verify" content="cd4725e805acd772d7cf78e56bc9d58b"> } @if (string.IsNullOrEmpty(Espresso.Area.Item.GoogleSiteVerification) == false) { <meta name="google-site-verification" content="@Espresso.Area.Item.GoogleSiteVerification"> } @if ( hasCookiebot == "True" ) { <script data-cookieconsent="ignore"> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("consent", "default", { ad_personalization: "denied", ad_user_data: "denied", ad_storage: "denied", analytics_storage: "denied", functionality_storage: "denied", personalization_storage: "denied", security_storage: "granted", wait_for_update: 500, }); gtag("set", "ads_data_redaction", true); gtag("set", "url_passthrough", true); </script> } @if (loadGoogleTagManager) { <!-- Google Tag Manager --> <script data-cookieconsent="ignore"> (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '@Espresso.Area.GoogleTagManagerID'); </script> <!-- End Google Tag Manager --> } @if (cookieBotId != "") { <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="@cookieBotId" data-blockingmode="auto" type="text/javascript"></script> } <script data-cookieconsent="ignore" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.3/gsap.min.js"></script> <script data-cookieconsent="ignore" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.3/ScrollTrigger.min.js"></script> </head> <body class="@Espresso.Item.CustomClasses" data-is-user-authenticated="@isUserAuthenticated.ToString().ToLower()" data-design="@Espresso.Area.DesignsFolderName"> @if ( loadGoogleTagManager ) { <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" height="0" width="0" style="display: none; visibility: hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> } @using System.Text.RegularExpressions 2 @using Co3.Espresso.Website.Models.FrontEnd 3 @using Co3.Espresso.Website.Models.FrontEnd.Settings 4 @using Co3.Espresso.Website.Services 5 @using Co3.MCH.Website.Frontend.Helpers 6 @using Co3.MCH.Website.Frontend.Models.Frontend 7 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase 8 @{ 9 Espresso.Canvas.Classes.AddClasses( "js-e-canvas is-loading" ); 10 if ( Espresso.Item.CanvasFullscreen == "True" ) 11 { 12 Espresso.Canvas.Classes.AddClasses( "is-fullscreen" ); 13 } 14 15 if ( Espresso.Item.HeaderTransparent == "True" ) 16 { 17 Espresso.Canvas.Classes.AddClasses( "header-is-transparent" ); 18 } 19 20 } 21 22 23 24 @{ 25 26 Regex hexcodeRegex = new Regex(@"^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"); 27 string exhibitionColorPrimary = hexcodeRegex.IsMatch( MCH365Context.Current.TradeShowDetails.PrimaryColor ) ? MCH365Context.Current.TradeShowDetails.PrimaryColor : "#000000"; 28 string exhibitionColorSecondary = hexcodeRegex.IsMatch( MCH365Context.Current.TradeShowDetails.SecondaryColor ) ? MCH365Context.Current.TradeShowDetails.SecondaryColor : "#000000"; 29 string exhibitionColorTertiary = hexcodeRegex.IsMatch( MCH365Context.Current.TradeShowDetails.TertiaryColor ) ? MCH365Context.Current.TradeShowDetails.TertiaryColor : "#000000"; 30 31 ColorHelper.HSL brandPrimary = ColorHelper.Instance.HexToHsl(exhibitionColorPrimary); 32 ColorHelper.HSL brandSecondary = ColorHelper.Instance.HexToHsl(exhibitionColorSecondary); 33 ColorHelper.HSL brandTertiary = ColorHelper.Instance.HexToHsl(exhibitionColorTertiary); 34 35 } 36 37 <style> 38 :root { 39 --primary-color: @brandPrimary.ToString(); 40 --primary-color-darken: @brandPrimary.Darken(10).ToString(); 41 42 --secondary-color: @brandSecondary.ToString(); 43 --secondary-color-darken: @brandSecondary.Darken(10).ToString(); 44 45 --tertiary-color: @brandTertiary.ToString(); 46 --tertiary-color-darken: @brandTertiary.Darken(10).ToString(); 47 48 --exhibition-profile-primary-brand-color: hsl(var(--primary-color)); 49 --exhibition-profile-secondary-brand-color: hsl(var(--secondary-color)); 50 --exhibition-profile-tertiary-brand-color: hsl(var(--tertiary-color)); 51 52 --exhibition-profile-primary-brand-color-darken: hsl(var(--primary-color-darken)); 53 --exhibition-profile-secondary-brand-color-darken: hsl(var(--secondary-color-darken)); 54 --exhibition-profile-tertiary-brand-color-darken: hsl(var(--tertiary-color-darken)); 55 } 56 </style> 57 58 59 60 <div class="e-loading-overlay e-page-loading-overlay is-loading js-e-page-loading-overlay"> 61 @RenderingService.Instance.PartialView( "_partials/loading-spinner.cshtml" ) 62 </div> 63 64 <div class="@Espresso.Canvas.Classes"> 65 @RenderingService.Instance.PartialView( "_partials/header.cshtml", Espresso ) 66 @RenderingService.Instance.PartialView( "usermanagement/viewprofile/espresso-impersonate-user-msg.cshtml", Espresso ) 67 <main id="dwcontentmain" class="e-content js-e-content @Espresso.ContentArea.Classes"> 68 69 <article class="e-content-article"> 70 @RenderingService.Instance.PartialView( "_partials/nav-local-vertical.cshtml", Espresso ) 71 @RenderingService.Instance.SectionStart( new SectionSettings() ) 72 @GetValue("DwContent(dwcontentmain)") 73 @RenderingService.Instance.SectionEnd() 74 </article> 75 </main> 76 77 @RenderingService.Instance.PartialView( "_partials/footer.cshtml", Espresso ) 78 79 @if ( !string.IsNullOrEmpty( GetString( "DwContent(dwcontentcta)" ) ) ) 80 { 81 <aside class="e-cta fixed-top is-hidden js-e-cta" id="dwcontentcta"> 82 @RenderingService.Instance.SectionStart( new SectionSettings 83 { 84 ContentClasses = new ClassList( "col-12" ), 85 OuterRowClasses = new ClassList("row no-gutters"), 86 InnerRowClasses = new ClassList("row no-gutters justify-content-center align-items-center") 87 } ) 88 @GetValue("DwContent(dwcontentcta)") 89 @RenderingService.Instance.SectionEnd() 90 91 </aside> 92 } 93 94 @RenderingService.Instance.PartialView( "ecom7/cartv2/step/espresso-cart-msg.cshtml" ) 95 </div> 96 97 @RenderingService.Instance.PartialView( "_partials/search.cshtml", Espresso ) 98 99 @RenderingService.Instance.PartialView( "_partials/back-to-top.cshtml", Espresso ) 100101 @if ( 1 == 2 ) 102 { 103 @GetValue("DwCookieWarning") 104 } 105106<script data-cookieconsent="ignore" async="" src="/Files/Templates/Designs/exhibition_site/_assets/_dist/js/default.js?v=1.8"></script> @if (PageView.Current().AreaID == 24) { <script data-cookieconsent="ignore" type="text/javascript"> var styles = document.createElement('style'); styles.appendChild(document.createTextNode("\ #formbtn {\ background: #6e9546;\ color: white;\ font-family: Arial;\ padding: 10px;\ position: fixed;\ bottom: 0;\ right: 0;\ cursor: pointer;\ }\ #form-wrapper {\ position: fixed;\ bottom: 0;\ right: 0;\ height: 433px;\ border-width: 0;\ z-index: 1;\ }\ #form {\ border-width: 0;\ scroll: none;\ overflow: hidden;\ z-index: 1;\ height: 100%;\ }\ #close-button {\ position: absolute;\ top: -5px;\ left: -5px;\ cursor: pointer;\ }\ ")); var fragment = document.createDocumentFragment(); var container = document.createElement('div'); container.innerHTML = "\ <div id=\"formbtn\">Tilmeld nyhedsbrev</div>\ <div style=\"display: none\" id=\"form-wrapper\">\ <div id=\"close-button\">\ <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"white\" xmlns=\http://www.w3.org/2000/svg\>\ <path d=\"M7.00504 14C10.8654 14 14 10.8654 14 6.99496C14 3.13463 10.8654 -1.37019e-07 7.00504 -3.05759e-07C3.14471 -4.745e-07 -1.3746e-07 3.14471 -3.062e-07 7.00504C-4.7494e-07 10.8654 3.13463 14 7.00504 14ZM7.00504 1.19942C10.2001 1.19942 12.8107 3.79986 12.8107 7.00504C12.8107 10.2001 10.2102 12.8107 7.00504 12.8107C3.80993 12.8107 1.19942 10.2102 1.19942 7.00504C1.19942 3.79986 3.79986 1.19942 7.00504 1.19942Z\" fill=\"#D3D3D3\"/>\ <path d=\"M4.29349 9.70594C4.52531 9.93777 4.90832 9.93777 5.14014 9.70594L7.00479 7.85137L8.85936 9.70594C9.09119 9.93777 9.4742 9.93777 9.70602 9.70594C9.93784 9.47412 9.93784 9.09111 9.70602 8.85929L7.85144 6.99464L9.70602 5.14007C9.93784 4.90825 9.93784 4.52524 9.70602 4.29342C9.58507 4.17247 9.43388 4.12207 9.28269 4.12207C9.1315 4.12207 8.98031 4.18255 8.85936 4.29342L7.00479 6.14799L5.14014 4.29342C5.01919 4.17247 4.868 4.12207 4.71682 4.12207C4.56563 4.12207 4.41444 4.18255 4.29349 4.29342C4.06167 4.52524 4.06167 4.90825 4.29349 5.14007L6.15814 7.00472L4.29349 8.86937C4.05159 9.09111 4.05159 9.47412 4.29349 9.70594Z\" fill=\"#D3D3D3\"/>\ </svg>\ </div>\ <iframe id=\"form\"></iframe>\ </div>\ "; fragment.appendChild(styles); fragment.appendChild(container); var button = fragment.querySelector("#formbtn"); var closeButton = fragment.querySelector("#close-button"); var frame = fragment.querySelector("#form"); var frameWrapper = fragment.querySelector("#form-wrapper"); var clickTimer; if (!(button && closeButton && frame && frameWrapper)) { throw new Error("Incorrect form configuration."); } function onClick() { frame.src = 'https://form.apsis.one/GTaxPAnRwqd';; frameWrapper.style.display = ''; } button.addEventListener('click', function () { onClick(); if (clickTimer) { clearTimeout(clickTimer); } }); closeButton.addEventListener('click', function () { frame.src = ''; frameWrapper.style.display = 'none'; }); document.body.appendChild(fragment); </script> } @if (PageView.Current().AreaID == 25) { <script data-cookieconsent="ignore" type="text/javascript"> var styles = document.createElement('style'); styles.appendChild(document.createTextNode("\ #formbtn {\ background: #2f7a3a;\ color: white;\ font-family: Arial;\ padding: 10px;\ position: fixed;\ bottom: 0;\ right: 0;\ cursor: pointer;\ }\ #form-wrapper {\ position: fixed;\ bottom: 0;\ right: 0;\ height: 433px;\ border-width: 0;\ z-index: 1;\ }\ #form {\ border-width: 0;\ scroll: none;\ overflow: hidden;\ z-index: 1;\ height: 100%;\ }\ #close-button {\ position: absolute;\ top: -5px;\ left: -5px;\ cursor: pointer;\ }\ ")); var fragment = document.createDocumentFragment(); var container = document.createElement('div'); container.innerHTML = "\ <div id=\"formbtn\">Tilmeld nyhedsbrev</div>\ <div style=\"display: none\" id=\"form-wrapper\">\ <div id=\"close-button\">\ <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\">\ <path d=\"M7.00504 14C10.8654 14 14 10.8654 14 6.99496C14 3.13463 10.8654 -1.37019e-07 7.00504 -3.05759e-07C3.14471 -4.745e-07 -1.3746e-07 3.14471 -3.062e-07 7.00504C-4.7494e-07 10.8654 3.13463 14 7.00504 14ZM7.00504 1.19942C10.2001 1.19942 12.8107 3.79986 12.8107 7.00504C12.8107 10.2001 10.2102 12.8107 7.00504 12.8107C3.80993 12.8107 1.19942 10.2102 1.19942 7.00504C1.19942 3.79986 3.79986 1.19942 7.00504 1.19942Z\" fill=\"#D3D3D3\"/>\ <path d=\"M4.29349 9.70594C4.52531 9.93777 4.90832 9.93777 5.14014 9.70594L7.00479 7.85137L8.85936 9.70594C9.09119 9.93777 9.4742 9.93777 9.70602 9.70594C9.93784 9.47412 9.93784 9.09111 9.70602 8.85929L7.85144 6.99464L9.70602 5.14007C9.93784 4.90825 9.93784 4.52524 9.70602 4.29342C9.58507 4.17247 9.43388 4.12207 9.28269 4.12207C9.1315 4.12207 8.98031 4.18255 8.85936 4.29342L7.00479 6.14799L5.14014 4.29342C5.01919 4.17247 4.868 4.12207 4.71682 4.12207C4.56563 4.12207 4.41444 4.18255 4.29349 4.29342C4.06167 4.52524 4.06167 4.90825 4.29349 5.14007L6.15814 7.00472L4.29349 8.86937C4.05159 9.09111 4.05159 9.47412 4.29349 9.70594Z\" fill=\"#D3D3D3\"/>\ </svg>\ </div>\ <iframe id=\"form\"></iframe>\ </div>\ "; fragment.appendChild(styles); fragment.appendChild(container); var button = fragment.querySelector("#formbtn"); var closeButton = fragment.querySelector("#close-button"); var frame = fragment.querySelector("#form"); var frameWrapper = fragment.querySelector("#form-wrapper"); var clickTimer; if (!(button && closeButton && frame && frameWrapper)) { throw new Error("Incorrect form configuration."); } function onClick() { frame.src = 'https://form.apsis.one/ewxhrddIqjFFI'; frameWrapper.style.display = ''; } button.addEventListener('click', function () { onClick(); if (clickTimer) { clearTimeout(clickTimer); } }); closeButton.addEventListener('click', function () { frame.src = ''; frameWrapper.style.display = 'none'; }); document.body.appendChild(fragment); </script> } </body> @GetValue( "CopyRightNotice" ) </html>