Error compiling template "Designs/Advania/UMCompanyAccessRequested.cshtml"
Line 11: The type or namespace name 'RazorTemplateBase<>' could not be found (are you missing a using directive or an assembly reference?)
Line 11: The type or namespace name 'RazorTemplateModel<>' could not be found (are you missing a using directive or an assembly reference?)
Line 11: The type or namespace name 'Template' could not be found (are you missing a using directive or an assembly reference?)
Line 16: The name 'WriteLiteral' does not exist in the current context
Line 21: The name 'GetPageIdByNavigationTag' does not exist in the current context
Line 24: The name 'WriteLiteral' does not exist in the current context
Line 67: The name 'WriteLiteral' does not exist in the current context
Line 118: The name 'WriteLiteral' does not exist in the current context
Line 119: The name 'WriteLiteral' does not exist in the current context
Line 120: The name 'WriteLiteral' does not exist in the current context
Line 121: The name 'WriteLiteral' does not exist in the current context
Line 134: The name 'WriteLiteral' does not exist in the current context
Line 179: The name 'WriteLiteral' does not exist in the current context
Line 180: The name 'Write' does not exist in the current context
Line 180: The name 'logoSection' does not exist in the current context
Line 181: The name 'WriteLiteral' does not exist in the current context
Line 182: The name 'WriteLiteral' does not exist in the current context
Line 183: The name 'WriteLiteral' does not exist in the current context
Line 184: The name 'Write' does not exist in the current context
Line 184: The name 'content' does not exist in the current context
Line 185: The name 'WriteLiteral' does not exist in the current context
Line 186: The name 'WriteLiteral' does not exist in the current context
Line 187: The name 'WriteLiteral' does not exist in the current context

1 // <auto-generated/> 2 #pragma warning disable 1591 3 namespace CompiledRazorTemplates.Dynamic 4 { 5 #line hidden 6 using System.Threading.Tasks; 7 using System; 8 using System.Collections.Generic; 9 using System.Linq; 10 using Advania.Templating; 11 internal class RazorEngine_d0e7aa6385bf4fa9967ef39f2b70c90d : RazorTemplateBase<RazorTemplateModel<Template>> 12 { 13 #pragma warning disable 1998 14 public async override global::System.Threading.Tasks.Task ExecuteAsync() 15 { 16 WriteLiteral("\n"); 17 string scheme = Dynamicweb.Context.Current.Request.Url.Scheme; string host = Dynamicweb.Context.Current.Request.Url.Host; string root = (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host; int myPagesID = GetPageIdByNavigationTag("MyPages"); var path = $"{root}/Default.aspx?ID={myPagesID}"; Advania.Templating.TemplateContext.Mailing.AddContextValue("MypagesPagePath", path); WriteLiteral(@" <!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""> <html xmlns=""http://www.w3.org/1999/xhtml""> <head> <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" /> <meta http-equiv=""X-UA-Compatible"" content=""IE=edge"" /> <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"" /> <style type=""text/css""> p, a, h1, h2, h3, h4, h6 { font-family: Adelle, sans-serif; color: #1d1c1b; font-style: normal; line-height: normal; margin: 0; padding: 0; } body { margin: 0; } table { border-spacing: 0; width: 100%; } td { padding: 0; } h1, h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 400; } p { font-"); 18 WriteLiteral(@"size: 12px; font-weight: 300; } th, td { font-size: 12px; } a { font-weight: bold; word-wrap: break-word; text-decoration: underline; text-decoration-color: #cb0084; text-decoration-style: solid; text-decoration-thickness: 1.5px; text-underline-offset: 6px; } img { border: 0; } .wrapper { width: 100%; table-layout: fixed; background-color: #f5f5f5; margin: 0 auto; } .main { margin: 0 auto; width: 100%; max-width: 600px; border-spacing: 0; padding-left: 8px; padding-right: 8px; } .section { background-color: #fff; } .font-color__white { color: #fff; } .font-color__grey { color: #6e6e6e; } "); 19 WriteLiteral(".font-color__purple {\n color: #4F0077\n }\n\n "); 20 WriteLiteral("@media screen and (min-width:600px) {\n .main {\n padding-left: 0;\n padding-right: 0;\n }\n }\n\n "); 21 WriteLiteral("@media screen and (min-width:480px) {\n\n p {\n font-size: 14px;\n }\n\n th, td {\n font-size: 14px;\n }\n\n h1 {\n font-size: 24px;\n }\n }\n\n "); 22 WriteLiteral(@"@media (prefers-color-scheme: light) { .darkLogoDefault, .lightLogo { display: none !important; } .darkLogoWrapper, .darkLogo { display: block !important; } } "); 23 WriteLiteral(@"@media (prefers-color-scheme: dark) { h1, h2, p, td, a { color: #fff !important; } body { background-color: #18191a !important; } .wrapper { background-color: #18191a !important; } .section { background-color: #252027 !important; } .font-color__purple { color: #b290c2 !important; } .font-color__grey { color: #efefef; } .darkLogoDefault, .darkLogo { display: none !important; } .lightLogoWrapper, .lightLogo { display: block !important; } .order-border-bottom td { } .bottom-border { border-bottom: 1px solid #292929 !important; } } </style> </head> <body bg=""#f5f5f5"" style=""background-color: "); 24 WriteLiteral("#f5f5f5\">\n <center class=\"wrapper\">\n <table class=\"main\">\n <thead>\n "); 25 Write(logoSection()); 26 WriteLiteral("\n </thead>\n <tbody>\n "); 27 WriteLiteral("\n\n"); 28 WriteLiteral("\n"); 29 Write(content(getDomain())); 30 WriteLiteral("\n\n"); 31 WriteLiteral(" </tbody>\n </table>\n </center>\n</body>\n</html>\n\n"); 32 WriteLiteral("\n\n\n"); 33 } 34 #pragma warning restore 1998 35 string InterpolateValue(string value) { return TemplateInterpolation.InterpolateStringValue(TemplateContext.Mailing, value, TemplateInterpolation.PATTERN_WORD_BRACKETS); } string getDomain() { string scheme = Dynamicweb.Context.Current.Request.Url.Scheme; string host = Dynamicweb.Context.Current.Request.Url.Host; return (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host; } } 36 } 37 #pragma warning restore 1591 38

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> @{ string scheme = Dynamicweb.Context.Current.Request.Url.Scheme; string host = Dynamicweb.Context.Current.Request.Url.Host; string root = (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host; int myPagesID = GetPageIdByNavigationTag("MyPages"); var path = $"{root}/Default.aspx?ID={myPagesID}"; Advania.Templating.TemplateContext.Mailing.AddContextValue("MypagesPagePath", path); } <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style type="text/css"> p, a, h1, h2, h3, h4, h6 { font-family: Adelle, sans-serif; color: #1d1c1b; font-style: normal; line-height: normal; margin: 0; padding: 0; } body { margin: 0; } table { border-spacing: 0; width: 100%; } td { padding: 0; } h1, h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 400; } p { font-size: 12px; font-weight: 300; } th, td { font-size: 12px; } a { font-weight: bold; word-wrap: break-word; text-decoration: underline; text-decoration-color: #cb0084; text-decoration-style: solid; text-decoration-thickness: 1.5px; text-underline-offset: 6px; } img { border: 0; } .wrapper { width: 100%; table-layout: fixed; background-color: #f5f5f5; margin: 0 auto; } .main { margin: 0 auto; width: 100%; max-width: 600px; border-spacing: 0; padding-left: 8px; padding-right: 8px; } .section { background-color: #fff; } .font-color__white { color: #fff; } .font-color__grey { color: #6e6e6e; } .font-color__purple { color: #4F0077 } @@media screen and (min-width:600px) { .main { padding-left: 0; padding-right: 0; } } @@media screen and (min-width:480px) { p { font-size: 14px; } th, td { font-size: 14px; } h1 { font-size: 24px; } } @@media (prefers-color-scheme: light) { .darkLogoDefault, .lightLogo { display: none !important; } .darkLogoWrapper, .darkLogo { display: block !important; } } @@media (prefers-color-scheme: dark) { h1, h2, p, td, a { color: #fff !important; } body { background-color: #18191a !important; } .wrapper { background-color: #18191a !important; } .section { background-color: #252027 !important; } .font-color__purple { color: #b290c2 !important; } .font-color__grey { color: #efefef; } .darkLogoDefault, .darkLogo { display: none !important; } .lightLogoWrapper, .lightLogo { display: block !important; } .order-border-bottom td { } .bottom-border { border-bottom: 1px solid #292929 !important; } } </style> </head> <body bg="#f5f5f5" style="background-color: #f5f5f5"> <center class="wrapper"> <table class="main"> <thead> @logoSection() </thead> <tbody> @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @using Advania.Templating; @functions{ string InterpolateValue(string value) { return TemplateInterpolation.InterpolateStringValue(TemplateContext.Mailing, value, TemplateInterpolation.PATTERN_WORD_BRACKETS); } string getDomain() { string scheme = Dynamicweb.Context.Current.Request.Url.Scheme; string host = Dynamicweb.Context.Current.Request.Url.Host; return (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host; } } @content(getDomain()) @* DW10: stubbed helper block (see REIMPLEMENTATION.md) *@ </tbody> </table> </center> </body> </html> @* DW10: stubbed helper block (see REIMPLEMENTATION.md) *@