Sep 17, 2012 at 1:01 PM
Edited Sep 17, 2012 at 1:07 PM
I have an existing MVC4 application that runs on the 4.5 framework.
I added to my solution a new MVC4 web app (with the 4.5 framework too) with one precompiled view (I added the reference to the RazorGenerator.Mvc package) but when I add the reference to my main project I have this error:
"Attempted to access an element as a type incompatible with the array."
Line 15: ViewEngines.Engines.Insert(0, engine);
Is it possible that the RazorGenerator package is not compatible with the 4.5 framework?
Edit: I updated the WebActivator package on the common view MVC web app to the 1.5.1 version and now it works!