开发者

SparkViewEngine does it work with asp.net mvc Vs2010

开发者 https://www.devze.com 2023-01-16 04:41 出处:网络
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-in开发者_JAVA技巧to-ASP

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-in开发者_JAVA技巧to-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'.


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...


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消