.NET 3.5 SP1 Beta and Its Effect on MVC

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: ,,

What others have said

Requesting Gravatar... Corey May 12, 2008 6:30 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
But Bleeding Edge in this case is soooo worth the pain.
Requesting Gravatar... Kevin Dente May 12, 2008 7:33 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
Any word on when preview 3 will be?
Requesting Gravatar... Steve May 12, 2008 9:33 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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 :)
Requesting Gravatar... Mojtaba Vali May 12, 2008 4:10 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
i think that microsoft is shaking .net framework 3.5 well before using.
Requesting Gravatar... zed May 12, 2008 4:11 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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.
Requesting Gravatar... Steve May 12, 2008 8:44 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
Zed:

"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
Requesting Gravatar... zed May 12, 2008 11:40 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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.:)
Requesting Gravatar... Thomas Danecker May 16, 2008 5:10 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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...
Requesting Gravatar... Thomas Danecker May 16, 2008 5:31 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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?
Requesting Gravatar... Haacked May 16, 2008 6:10 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
@Thomas ASP.NET MVC does not have a dependency on .NET 3.5 SP1, so yes you can.
Requesting Gravatar... zed May 16, 2008 8:06 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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?
Thanks
Requesting Gravatar... Lee May 18, 2008 2:57 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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
Requesting Gravatar... ly Aug 27, 2008 1:38 PM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
Cannot find the section entitle "Changes for ASP.NET MVC Preview 2" at the link provided. I'm at a lost here.
Requesting Gravatar... Carlos Sep 15, 2008 8:34 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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.
Requesting Gravatar... Scott Dec 01, 2008 12:45 AM
# re: .NET 3.5 SP1 Beta and Its Effect on MVC
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...

What do you have to say?

(will show your gravatar)
Please add 5 and 8 and type the answer here: