views:

113

answers:

3

Hello,

I am trying to use new spark view engine . i have done all necessery configuration as mentioned here

http://dotnetslackers.com/articles/aspnet/Installing-the-Spark-View-Engine-into-ASP-NET-MVC-2-Preview-2.aspx

and Have below Erorr message on run time..what am i missing?

AS in understand Spark view engine uses system.web 2.0 and vs2010 mvc project uses system.web 4.0... do we need to make any changes?

Dynamic view compilation failed. error

Spark.Compiler.CompilerException: Dynamic view compilation failed. (0,0): error CS1668: Warning as Error: Invalid search path 'c:\open road\INGRES\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' ocating source for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'. Checksum: MD5 {1 1c 29 59 6f 9a 26 37 1b 96 c0 fb 1d 1a 34 11}

The file 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs' does not exist. Looking in script documents for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'... Looking in the projects for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'. The file was not found in a project. Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'... The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs. The debugger could not locate the source file 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'.

A: 

You might want to grab the solution provided here. Although I haven't tried it, it looks like someone got a solution working and shared it with the world.

R0MANARMY
A: 

Try these instructions instead - http://blogs.msdn.com/b/mikeormond/archive/2009/12/21/video-spark-view-engine-part-1.aspx

mikemerce
i have tried these instruction atleast 10 times..with error. Have you personally tried to use it with V4 ?
swapneel
A: 

Spark now works with .Net 4.0 for dynamic view compilation and the solution also opens in VS2010 from the master branch. You can either download the source and compile the latest binaries, or you can get the latest binaries using NuGet in VS2010.

Hope that helps...

RobertTheGrey