ASP.NET MVC Release Candidate 2

ASP.NET MVC Release Candidate 2

  • Comments 7

ASP.NET MVC Release Candidate 2 is live! Check out Phil Haack’s blog, Haacked.com, for information on the new installer and some other general release info. The release is mostly focused on responding to customer feedback but there are some minor tooling improvements and bug fixes that are worth calling out.

Tooling Improvements And Important Fixes

  • After the first RC was released, we found that the Add View tool generated exceptions when trying to get type information from a type in one assembly that somehow depended on type information (for example, implementing an interface) in another assembly. You should now be able to add scaffolded views for these types after upgrading to RC2.
  • Previously, when adding a scaffolded view, the primary key in the views ActionLinks was commented out. In RC2, the T4 template logic looks for primary key attributes for Linq-to-Sql and Entities objects and automatically adds the primary key to the routeValues object in the ActionLink. You will also notice that properties of type double, decimal, and DateTime are formatted.

RC2

Known Issue Adding a Silverlight Application

When creating a new Silverlight Application by adding a new ASP.NET MVC Web Project to the solution to host Silverlight, an error appears stating that the project is unavailable. The error only occurs when creating a new Silverlight Application with ASP.NET MVC Web Project selected as the project type. This will be fixed for ASP.NET MVC RTM.

The ASP.NET MVC installer registers the location of the ASP.NET MVC project templates so that ASP.NET MVC projects can host Silverlight Applications. The ASP.NET MVC project template names were updated for RC 2 and need to be updated in the registry to add a Silverlight Application to an MVC project:

C#

Add ‘v1‘ to the following registry key:

 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{CB22EE0E-4072-4ae7-96E2-90FCCF879544}\SupportedWebProjects\MVCWebApplication\C#]

Update value to: CSharp\Web\{lcid}\MvcWebApplicationProjectTemplatev1.cs.zip\MvcWebApplicationProjectTemplate.cs.vstemplate

Note: On x64 the key is in the WOW node:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Packages\{CB22EE0E-4072-4ae7-96E2-90FCCF879544}\SupportedWebProjects\MVCWebApplication\C#]

Visual Basic

Add ‘v1‘ to the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{CB22EE0E-4072-4ae7-96E2-90FCCF879544}\SupportedWebProjects\MVCWebApplication\VB]

Update value to: VisualBasic\Web\{lcid}\MvcWebApplicationProjectTemplatev1.vb.zip\MvcWebApplicationProjectTemplate.vb.vstemplate

Note: On x64 the key is in the WOW node:

 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Packages\{CB22EE0E-4072-4ae7-96E2-90FCCF879544}\SupportedWebProjects\MVCWebApplication\VB]

Hope This Helps!

Joe Cartano | Visual Web Developer

Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post
  • PingBack from http://aspdotnetmvc.com/buzz/default.aspx

  • Potete scaricare la RC 2 di ASP.NET MVC a questo link . Alcune correzioni di piccoli bug e modifiche:

  • Thanks for the new release! I hope we will have RTM very soon :)

  • I've installed .NET MVC rc2 on an XP machine with visual web developer 2008 express edition SP1 with .net 3.5 sp1

    But when i go to create a new project or website there is no option for creating an MVC project, any ideas?

    Thanks,

    infoATsocialaddictDOTcoDOTuk

  • @Andi

    Can you try tools->options->reset settings

    Also, I would like to get in touch with you about this issue. Can you please contact me at joecar at microsoft dot com so that I can investigate?

    Thanks,

    Joe Cartano | Visual Web Developer

  • I'm having exactly the same problem as Andi G. Just installed VWD 2008 SP1, ASP.NET MVC 1.0, .NET 3.5 SP1, all via the Web Platform installer. But when I try to open a new project, there's no option for "ASP.NET MVC Web Application under C# > Web type or VB > Web type (all the other expected templates are there). Any ideas?

    Thanks,

    Andy

  • Actually, I just found the problem, thanks to post by jeloff at http://forums.asp.net/t/1395911.aspx. I had to uninstall ASP.MVC and then reinstall it. Apparently it must be installed after VWD, and apparently the Web Platform installer does not install in this order. After uninstall/re-install of ASP.MVC 1, it works fine.

    Andy

Page 1 of 1 (7 items)