Dmitriy Kudinov
Dmitriy Kudinov

Reputation: 1072

Migration to MVC3

I trying to migrate from MVC2 to MVC3. I use Spark view engine. After changing references I got only 2 errors in my Spark page base class:

The type 'System.Web.Mvc.IView' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. C:\Dev\main\app\Web\Html\SparkPageBase.cs


The type 'System.Web.Mvc.IViewDataContainer' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.    C:\Dev\main\app\Web\Html\SparkPageBase.cs

How I can resolve this problem?

Upvotes: 1

Views: 161

Answers (2)

amb
amb

Reputation: 1609

See if it works after you modify the web.config to have the following version for System.Web.Mvc

<dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
  </dependentAssembly>

Upvotes: 1

Kirill Bestemyanov
Kirill Bestemyanov

Reputation: 11964

Try to download and use Spark View Engine for MVC3.

Spark View Engine for MVC3

Upvotes: 3

Related Questions