NancyFx/Nancy — Issue #506: using Razor.NancyRazorViewBase throws StackOverflowException
Author: jhovgaard
Created: 2012-02-16 16:47:52+00:00
State: open

I've just downloaded the current master, builded and referred the Nancy, Nancy.Hosting.Aspnet and Nancy.ViewEngines.Razor dlls to a new emtpy asp.net project.

I have one poco `BlogPost` and one` HomeModule` and a Razor view. Everything works until I add this line to the top of my Index.cshtml:

@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase
This makes Nancy throw the following exception (and crashing IIS Express and VS Dev Server):

An unhandled exception of type 'System.StackOverflowException' occurred in Nancy.ViewEngines.Razor.DLL
NancyCSharpRazorcodeParser.cs, Line 25.