Arun
Arun

Reputation: 19

Moving from visual studio 2008 to visual studio 2010

Any solution to this:

Assembly 'DomainModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

DomainModel\bin\Debug\DomainModel.dll

I have re-added the reference that points to mvc2, and whatmore is required ? Still this error.

ThankYou!

Upvotes: 0

Views: 274

Answers (1)

marcind
marcind

Reputation: 53183

You need to add an assembly binding redirection section to your web.config file:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
      <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

Upvotes: 2

Related Questions