02

Hotel entdecken

Herzlich willkommen im 5-Sterne-Luxushotel Schloss Bensberg.
Bei uns erwarten Sie ein atemberaubendes Panorama, Genussmomente auf 3-Sterne-Niveau und dies alles in einem einmalig, königlichen Rahmen.

Ganz gleich, ob Business-Reise, Städtetrip, Wellness-Wochenende oder Hochzeitsfeier, unser Schloss adelt seine Besucher – denn hier wohnen Könige!

Mehr erfahren

WILLKOMMEN IN BENSBERG

03

Das Hotel entdecken

04

Restaurant Vendôme

Erleben Sie Gourmet Cuisine vom besten Vertreter der „Neuen deutschen Schule“. Joachim Wissler serviert Ihnen eine gelungene Mischung aus klassischer Kochkunst, Kreativität und Moderne.

Jetzt entdecken

05

Entspannen & Genießen

4 elements spa

Die vier Elemente – Feuer, Wasser, Luft und Erde – bieten ganzheitliche Balance für Körper, Geist und Seele.

Mehr erfahren

Tagungen & Feiern

Bei uns wird Ihr Event zum unvergesslichen Erlebnis.

Mehr erfahren

Königlich übernachten

06

Packages entdecken Zimmer & Suiten

07

Restaurant & Bar

In der von Weinkennern geschätzten Trattoria Enoteca kommt das Beste aus Italien auf den Teller und der sonntägliche Champagnerbrunch im Restaurant Jan Wellem lädt zum genussvollen Schlemmen am enspanntesten Tag der Woche ein. Die modern-klassische Salvador Dalí Bar überrascht Sie mit dem innovativen Konzept "New fashioned food & open wines" und lädt Sie zu einem entspannten Abend ein.

Mehr erfahren
Razor Compilation Error

Razor Compilation Error

We tried, we really did, but we just can't compile your view.

We're sorry :-(

Graphics courtesy of the awesome Matthew Inman

Details

Error Details

Error compiling template: Views/Shared/BookingBeneficts.cshtml

Errors:
[CS1061] Line: 39 Column: 20 - 'Nancy.ViewEngines.Razor.HtmlHelpers' does not contain a definition for 'GatherContentByPageId' and no extension method 'GatherContentByPageId' accepting a first argument of type 'Nancy.ViewEngines.Razor.HtmlHelpers' could be found (are you missing a using directive or an assembly reference?) (show)
[CS1061] Line: 41 Column: 20 - 'Nancy.ViewEngines.Razor.HtmlHelpers' does not contain a definition for 'GatherContentByPageId' and no extension method 'GatherContentByPageId' accepting a first argument of type 'Nancy.ViewEngines.Razor.HtmlHelpers' could be found (are you missing a using directive or an assembly reference?) (show)
[CS1061] Line: 43 Column: 87 - 'Nancy.ViewEngines.Razor.HtmlHelpers' does not contain a definition for 'GatherContentByPageId' and no extension method 'GatherContentByPageId' accepting a first argument of type 'Nancy.ViewEngines.Razor.HtmlHelpers' could be found (are you missing a using directive or an assembly reference?) (show)
[CS1061] Line: 43 Column: 181 - 'Nancy.ViewEngines.Razor.HtmlHelpers' does not contain a definition for 'GatherContentByPageId' and no extension method 'GatherContentByPageId' accepting a first argument of type 'Nancy.ViewEngines.Razor.HtmlHelpers' could be found (are you missing a using directive or an assembly reference?) (show)

Details:
@using System.Linq

@{
var gcId = 1;

if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "collection")
{
gcId = 3047514;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "bensberg")
{
gcId = 3047502;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "uberfahrt")
{
gcId = 3047506;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "schlossgarten")
{
gcId = 3047507;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "furstenhof")
{
gcId = 3047508;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "belrose")
{
gcId = 3047511;
}
else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "dom")
{
gcId = 3047512;
}
}

<div class="booking-modal">
<a href="" class="heading">booking benefits</a>
<div class="wrap">
<h3>@(Html.GatherContentByPageId("bookingbenefits/title", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()))</h3>
<div class="list">
@(Html.GatherContentByPageId("bookingbenefits/html", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()))
</div>
<a href="@(Html.GatherContentByPageId("bookingbenefits/href", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()))" class="div-center">@(Html.GatherContentByPageId("bookingbenefits/linktext", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()))</a>
</div>
</div>

Compilation Source:
//------------------------------------------------------------------------------
Line 1: // <auto-generated>
Line 2: // This code was generated by a tool.
Line 3: // Runtime Version:4.0.30319.42000
Line 4: //
Line 5: // Changes to this file may cause incorrect behavior and will be lost if
Line 6: // the code is regenerated.
Line 7: // </auto-generated>
Line 8: //------------------------------------------------------------------------------
Line 9:
Line 10: namespace RazorOutput {
Line 11: using Microsoft.CSharp.RuntimeBinder;
Line 12: using System;
Line 13: using System.IO;
Line 14: using Nancy.ViewEngines.Razor;
Line 15:
Line 16: #line 1 "roo"
Line 17: using System.Linq;
Line 18:
Line 19: #line default
Line 20: #line hidden
Line 21:
Line 22:
Line 23: public class RazorView : Nancy.ViewEngines.Razor.NancyRazorViewBase {
Line 24:
Line 25: #line hidden
Line 26:
Line 27: public RazorView() {
Line 28: }
Line 29:
Line 30: public override void Execute() {
Line 31: WriteLiteral("\r\n");
Line 32:
Line 33:
Line 34: #line 3 "roo"
Line 35:
Line 36: var gcId = 1;
Line 37:
Line 38: if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "collection")
Line 39: {
Line 40: gcId = 3047514;
Line 41: }
Line 42: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "bensberg")
Line 43: {
Line 44: gcId = 3047502;
Line 45: }
Line 46: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "uberfahrt")
Line 47: {
Line 48: gcId = 3047506;
Line 49: }
Line 50: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "schlossgarten")
Line 51: {
Line 52: gcId = 3047507;
Line 53: }
Line 54: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "furstenhof")
Line 55: {
Line 56: gcId = 3047508;
Line 57: }
Line 58: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "belrose")
Line 59: {
Line 60: gcId = 3047511;
Line 61: }
Line 62: else if (Html.GetProperty("PageGroup").ToHtmlString().ToLower() == "dom")
Line 63: {
Line 64: gcId = 3047512;
Line 65: }
Line 66:
Line 67:
Line 68: #line default
Line 69: #line hidden
Line 70: WriteLiteral("\r\n\r\n<div");
Line 71:
Line 72: WriteLiteral(" class=\"booking-modal\"");
Line 73:
Line 74: WriteLiteral(">\r\n <a");
Line 75:
Line 76: WriteLiteral(" href=\"\"");
Line 77:
Line 78: WriteLiteral(" class=\"heading\"");
Line 79:
Line 80: WriteLiteral(">booking benefits</a>\r\n <div");
Line 81:
Line 82: WriteLiteral(" class=\"wrap\"");
Line 83:
Line 84: WriteLiteral(">\r\n <h3>");
Line 85:
Line 86:
Line 87: #line 39 "roo"
Line 88: Write(Html.GatherContentByPageId("bookingbenefits/title", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()));
Line 89:
Line 90:
Line 91: #line default
Line 92: #line hidden
Line 93: WriteLiteral("</h3>\r\n <div");
Line 94:
Line 95: WriteLiteral(" class=\"list\"");
Line 96:
Line 97: WriteLiteral(">\r\n");
Line 98:
Line 99: WriteLiteral(" ");
Line 100:
Line 101:
Line 102: #line 41 "roo"
Line 103: Write(Html.GatherContentByPageId("bookingbenefits/html", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()));
Line 104:
Line 105:
Line 106: #line default
Line 107: #line hidden
Line 108: WriteLiteral("\r\n </div>\r\n <a");
Line 109:
Line 110: WriteAttribute("href", Tuple.Create(" href=\"", 1376), Tuple.Create("\"", 1518)
Line 111:
Line 112: #line 43 "roo"
Line 113: , Tuple.Create(Tuple.Create("", 1383), Tuple.Create<System.Object, System.Int32>(Html.GatherContentByPageId("bookingbenefits/href", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper())
Line 114:
Line 115: #line default
Line 116: #line hidden
Line 117: , 1383), false)
Line 118: );
Line 119:
Line 120: WriteLiteral(" class=\"div-center\"");
Line 121:
Line 122: WriteLiteral(">");
Line 123:
Line 124:
Line 125: #line 43 "roo"
Line 126: Write(Html.GatherContentByPageId("bookingbenefits/linktext", @gcId, @Html.CMSContext().CurrentPage.Culture.TwoLetterISOLanguageName.ToUpper()));
Line 127:
Line 128:
Line 129: #line default
Line 130: #line hidden
Line 131: WriteLiteral("</a>\r\n </div>\r\n</div>");
Line 132:
Line 133: }
Line 134: }
Line 135: }
Line 136: