The type initializer for 'RazorEngine.Razor' threw an exception.

Jan 4, 2012 at 10:19 PM

Hi All,


I am receiving the following error while calling Razor.Parse Method. "The type initializer for 'RazorEngine.Razor' threw an exception."

I have created a project which references the razorengine.dll and System.Web.Razor.dll. 

Any ideas please?




Jan 9, 2012 at 10:14 PM

You should be able to look at the inner exception to figure out what the problem is?