Error when using Razor.Parse

Dec 8, 2011 at 11:09 PM

I ran this simple example from the website and I get the error below when it calls Razor.Parse. How can I fix this???

string template = "Hello @Model.Name! Welcome to Razor!";

 string result = Razor.Parse(template, new { Name = "World" });

error CS0234: The type or namespace name 'Markdown' does not exist in the namespace 'ServiceStack' (are you missing an assembly reference?)

Dec 16, 2011 at 9:12 AM


This doesn't really give me anything to work with. The template doesn't appear to reference the ServiceStack.Markdown, unless you've made a call to AddNamespaces() somewhere?