Razor and JavaScript parsing issue

Created a new MVC4 web application using the mobile template. I added a controller based on a EF entity which resulted in some code being generated and a view which has JavaScript representing the ...

Id #721 | Release: None | Updated: May 8 at 8:02 PM by schalkvanwyk | Created: May 8 at 7:47 PM by schalkvanwyk

The type or namespace name 'RazorEngine' could not be found

I keep getting this error no matter what I try. I thought it was because my project was using a client profile but its not. Its set to 4.0. I'm using the 3.0.8.0 beta assembly that I installed usin...

Id #713 | Release: None | Updated: Apr 27 at 6:59 AM by degree451 | Created: Apr 27 at 5:03 AM by degree451

Error with dynamically loaded assembly

The error occurs when I try to load assembly dynamically which uses RazorEngine. Error text: System.Diagnostics.Contracts.__ContractsRuntime+ContractException: Precondition failed: templateType !=...

Id #706 | Release: None | Updated: May 9 at 3:44 PM by tomgallard | Created: Apr 6 at 2:35 PM by WStealth

TemplateBase._Layout

Does the _Layout property serve the same purpose as WebPageBase.Layout in MVC? If so, then shouldn't it be named without the underscore prefix? There is a convention of the default layout being _L...

Id #597 | Release: None | Updated: Feb 9 at 6:12 AM by toddlucas | Created: Feb 9 at 6:12 AM by toddlucas

.NET 4.5 / MVC4 compatibility. Method not found exception

I have Windows 7 64 bit, .NET 4.5 (preview) installed and ASP.NET MVC 4 (preview) installed. Got following exception: Method not found: System.Collections.Generic.Dictionary`2<System.String,BlockPa...

Id #591 | Release: None | Updated: Mar 22 at 6:54 PM by Neurothustra | Created: Feb 7 at 8:50 AM by evereq

MVC4 Razor ending a section early from JS }

In an MVC4 project I have a view with a section for header scripts (below). Razor is ending the section on the last line of the Javascript (the } ) instead of the end like it should. Note: This w...

Id #559 | Release: None | Updated: Feb 1 at 3:14 PM by AntarisZX | Created: Dec 29 2011 at 11:40 PM by dkarzon

Needs better error reporting when there are compilation errors

When you call CodeDomProvider.CompileAssemblyFromDom it can report compilation errors that are turned into an exception. The problem is that I cannot see the code that it couldn't compile. Please...

Id #535 | Release: None | Updated: Jan 28 at 2:48 PM by Quango | Created: Nov 21 2011 at 2:56 PM by Grauenwolf

An assembly with the same simple name has already been imported

I've started getting this in my web application that makes use of RazorEngine. It started after an update in which I copied in some new DLLs. It's not always the same DLL it's failing on - someti...

Id #532 | Release: None | Updated: Apr 12 at 8:06 AM by BennyXNO | Created: Nov 2 2011 at 1:45 PM by ssmith

Threadpool

I seem to have problems running RazorEngine in a thread pool, even using the latest version from source I still get a bunch of errors parsing templates, my only hack for now is to put a lock around...

Id #510 | Release: None | Updated: Oct 12 2011 at 4:56 PM by AntarisZX | Created: Oct 12 2011 at 1:26 AM by stefansedich

Error when attempting to parse in F#

I get the same error whether using F# Interactive or running within my application. I've tried using a standard class, an immutable class with constructor parameters, and a F# record. The easiest w...

Id #501 | Release: None | Updated: Sep 29 2011 at 3:59 PM by riles01 | Created: Sep 28 2011 at 7:22 AM by riles01