R – How to use ASP.NET MVC RC with Visual Studio Web Developer 2008 SP1

asp.net-mvcnetvwdexpress

When I go to File > New Website there isn't a template for MVC. I googled "how to use MVC with vwd?" and these links came up

http://geekswithblogs.net/jwhitehorn/archive/2007/12/10/117569.aspx
http://jerusahat.wordpress.com/2007/12/12/aspnet-mvc-template-for-visual-web-developer-2008-express/
http://www.lazycoder.com/weblog/2007/12/10/using-the-aspnet-mvc-framework-with-visual-web-developer-express/

but none of them seem to work. I just get assembly reference errors and after I hookup the assemblies I get:

Error 1 'System.Web.Routing.Route' does not contain a constructor that takes '0' arguments

Error 2 Cannot implicitly convert type 'AnonymousType#1'

Error 3 Cannot implicitly convert type 'System.Type' to 'System.Web.Routing.IRouteHandler'.

and so on…

Is VWD2008 compatible with ASP.NET MVC?

Best Answer

you also need to have sp1 installed.

if you do have vwd express 2008 sp1 installed, you might have the same problem i had when i first went looking for MVC in the vwd menu.

try going to 'Tools' -> 'Import and Export Settings' and then 'Reset all settings.'

after that, you need to create a new project and select the MVC template. (don't create a new web site).