Daniel Cazzulino's Blog : How to get ASP.NET MVC Preview 4 to run with .NET SP1

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

How to get ASP.NET MVC Preview 4 to run with .NET SP1

As you probably know by now (i.e. from Phill's blog), however both Routing and Abstractions are. MVC Preview 4, however, has its own version of both assemblies.

In order to get MVC to use the new RTM bits of both assemblies (and avoid weird side-by-side errors), you just need to add the following binding redirect to the web.config file:

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Abstractions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="0.0.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Routing" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="0.0.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

The other two redirects are added automatically by a Dynamic Data website, so I figured out it's better to put them there too :)

posted on Sunday, August 24, 2008 9:03 AM by kzu

# How to get ASP.NET MVC Preview 4 to run with .NET SP1 @ Sunday, August 24, 2008 9:26 AM

As you probably know by now (i.e. from Phill&amp;#39;s blog ), however both Routing and Abstractions are

Anonymous

# Kostenloser WEB Space @ Tuesday, December 09, 2008 1:13 AM

Das stimmt nicht immer, hier folgt eine aktuelle Auswahl von guten Hoster.

Anonymous