Creating a new project

A standard Asp.Net MVC web application is always a great starting place. First, add references to the following assemblies:

Spark.dll

Spark.Python.dll

Spark.Web.Mvc.dll

Spark.Web.Mvc.Python.dll

And the following from the IronPython release which are available in the Spark bin\dependencies folder. If you have problems with the these files from Codeplex try the ones in from the Spark distribution. You have the "works on my machine" guarantee.

Microsoft.Scripting.dll

Microsoft.Scripting.Core.dll

Microsoft.Scripting.ExtensionAttribute.dll

IronPython.dll

IronPython.Modules.dll

Yeah, I know. It's a lot of assemblies. You're going to love the next part though, adding the Spark view engine to an Asp.Net MVC web application has been simplified.

The Spark engine starter also has several utility methods for more advanced initialization. You can, for example, provide a settings object from code. You can also use the ISparkServicesContainer to provide specific implementations of different services used by the Spark engine.