Note that there are some explanatory texts on larger screens.

plurals
  1. PORE: Using themes with ASP.Net MVC
    text
    copied!<p>I have an ASP.NET MVC (Beta 1) website that I'm using themes with. When I start my site (I'm still running using the ASP.Net Development Web Server) the default page gives me this error:</p> <pre><code>Server Error in '/' Application. Using themed css files requires a header control on the page. (e.g. &lt;head runat="server" /&gt;). 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: Using themed css files requires a header control on the page. (e.g. &lt;head runat="server" /&gt;). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Using themed css files requires a header control on the page. (e.g. &lt;head runat="server" /&gt;).] System.Web.UI.PageTheme.SetStyleSheet() +2458366 System.Web.UI.Page.OnInit(EventArgs e) +8694828 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378 Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 </code></pre> <p>Do I need to change something with my routes? Or do I need to do something else to my site?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload