.NET 3.5 SP1 Beta and Its Effect on MVC

asp.net, asp.net mvc, code 0 comments suggest edit

The news is out, the beta for the Visual Studio 2008 and the .NET Framework 3.5 Service Pack has been released. As it relates to ASP.NET MVC, there are two important points to notice about the SP1 release:

  • ASP.NET MVC is not included
  • URL Routing is included

Now you can see why there’s been so much focus on Routing from the MVC team, as Routing is now part of the Framework and is not out-of-band. This meant that we had to put a lot more effort into Routing to make sure it was production ready.

ASP.NET MVC continues to be an out-of-band release. With the Routing code now effectively complete, you should hopefully start to see a lot more progress in MVC as our development team can focus almost exclusively on MVC.

MVC Preview 2 Apps Are Affected By SP1

Another important thing to note is that installing SP1 Beta installs the System.Web.Routing and System.Web.Abstractions assemblies into the GAC (Global Assembly Cache). These assemblies have the same exact assembly version as the ones we released as part of Preview 2.

What this means is that even though you might have a direct reference to the Preview 2 assemblies, when your app runs, it will still load those assemblies from the GAC.

We’ve posted the workaround for Preview 2 applications at the bottom of the page here in the section entitled Changes for ASP.NET MVC Preview 2.

April CodePlex Apps

If you’re running the April CodePlex app, you should be okay using the version from SP1 Beta. There might be minor behavioral differences in edge cases.

Preview 3

MVC Preview 3 will not be affected by having SP1 installed. Preview 3 will include newer privately versioned bin deployable builds of the Routing and Abstractions DLLs. That way these assemblies will not be affected by the versions in the GAC installed by SP1, because they will have different version numbers.

They don’t call it “Bleeding Edge” for nothing when playing with these previews, but we are sorry for the inconvenience and Preview 3 should make it better.

Technorati Tags: aspnetmvc,aspnet,net35sp1

Found a typo or error? Suggest an edit! If accepted, your contribution is listed automatically here.



15 responses

  1. Avatar for Corey
    Corey May 12th, 2008

    But Bleeding Edge in this case is soooo worth the pain.

  2. Avatar for Kevin Dente
    Kevin Dente May 12th, 2008

    Any word on when preview 3 will be?

  3. Avatar for Steve
    Steve May 12th, 2008

    To be quite honest, I'm not touching anything that isn't MVC anyway.
    I'll pass on the 3.5 beta :)
    Looking forward to Preview 3 :)

  4. Avatar for Mojtaba Vali
    Mojtaba Vali May 12th, 2008

    i think that microsoft is shaking .net framework 3.5 well before using.

  5. Avatar for zed
    zed May 12th, 2008

    So, is routing final in this beta release or is it not? From the said on Scott's blog it seems it's a final version like also Entity Framework. From this here it seems like Preview 3 will change routing. So, is it usable in production or not?
    Also is EntityFramework usable or not?
    Thank you.

  6. Avatar for Steve
    Steve May 12th, 2008

    "ASP.NET MVC will be a separate download for its first release. It can use either the .NET 3.5 SP1 routing engine, or alternatively it also ships with a private copy of it - so that it can work on .NET 3.5 (non-SP1). " (ScottGu)
    I read this as: doesn't say new version, same version but non-GAC'd

  7. Avatar for zed
    zed May 12th, 2008

    Well, that's what I've thought.
    Now I have yet to decide to go from nRewrite to this. Seems tricky to go with a beta, but what the hell.:)

  8. Avatar for Thomas Danecker
    Thomas Danecker May 16th, 2008

    I have problems getting the MVC Framework to work. Whenever I run a website (from Visual Studio's host or from IIS 7), it just shows me the empty Default.aspx. The framework's routing isn't triggered. I tried a fresh Project and also reinstalled the MVC Framework Preview 2. No change.
    Do you have any ideas what may causing a problem?
    I'm running Windows Server 2008...

  9. Avatar for Thomas Danecker
    Thomas Danecker May 16th, 2008

    Sorry, I should have looked at the "Changes for ASP.NET MVC Preview 2" earlier.
    But a new question emerged: Can I deploy a website containing these changes to a server without the .net 3.5 SP1 installed?

  10. Avatar for Haacked
    Haacked May 16th, 2008

    @Thomas ASP.NET MVC does not have a dependency on .NET 3.5 SP1, so yes you can.

  11. Avatar for zed
    zed May 16th, 2008

    The sample of using Routing with ASP.NET (not MVC) doesn't work in SP1.
    Could you please be so kind to update or show way to a fresh example that works?

  12. Avatar for Lee
    Lee May 18th, 2008

    I'm with Zed... Would like to see some examples of routing without MVC.. I haven't actually seen that I have managed to get to work

  13. Avatar for ly
    ly August 27th, 2008

    Cannot find the section entitle "Changes for ASP.NET MVC Preview 2" at the link provided. I'm at a lost here.

  14. Avatar for Carlos
    Carlos September 15th, 2008

    Hi Phil,
    Its been a while since this was posted and it looks like the read me has been updated and no longer has the section entitle "Changes for ASP.NET MVC Preview 2" at the link provided. Could you provide another link on how to get preview 2 up and going? For reason I wont get into, I can not just move to preview 3 or later.
    Thanks in advance.

  15. Avatar for Scott
    Scott November 30th, 2008

    I also can't find the Changes for ASP.NET MVC Preview 2. Someone rolled 3.5 SP1 over the weekend and I'm scouring the interwebs looking for a cache of the solution, but so far no luck. If anyone has found this PLEASE let me know...