I am trying a very simple contentpage at ~/View.cshtml that consists of
@inherits ViewPage
@{
Layout = "SimpleLayout";
ViewBag.Title = "Title";
}
<div id="content-page">
<p>Test</p>
</div>
at ~/Views/Shared/SimpleLayout.cshtml is
<!DOCTYPE HTML>
<html>
<head>
<title>Simple Layout</title>
</head>
<body>
<div id="content">
@RenderBody()
</div>
</body>
</html>
In debug mode it works fine, but on deploy it then shows
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0146: Circular base class dependency involving 'RazorOutput.ViewPage' and 'RazorOutput.ViewPage'
I'm trying to follow the RockStars example as closely as possible, so don't have an idea of what's wrong. My service views work fine.
Any suggestions would be appreciated.
Update
When the name of the page is changed (e.g. NewPage.cshtml) then it will not work in Debug either, throwing the same exception.