This question is locked. New answers and comments are not allowed.
I'm developing a hybrid app, with most of the site contents are in MVC except for the forums. I would like to use just a single masterpage for both portion and it seems like the only way is to create a MAIN masterpage using webform, then a sub-masterpage using MVC, pointing to the MAIN masterpage. Everything is working just fine, but as soon as I add the Telerik tags to the MVC portion of the masterpage to take advantage of the stylesheets/scripts registrar (combi/compress), I receive this error:
Server Error in '/' Application. |
A ViewMasterPage can be used only with content pages that derive from ViewPage or ViewPage<TViewItem>. |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
Exception Details: System.InvalidOperationException: A ViewMasterPage can be used only with content pages that derive from ViewPage or ViewPage<TViewItem>. |
Source Error: |
Line 5: <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> |
Line 6: </title> |
Line 7: <%= Html.Telerik().StyleSheetRegistrar() |
Line 8: .DefaultGroup(style => |
Commenting out the <%= Html.Telerik()... code will make it work, and the Forums (webform) referencing this sub-masterpage (mvc masterpage) displays its contents just fine. Is there anyway to make the telerik extension work in this scenario?
Thank you very much,
Kenny.