简体   繁体   中英

ASP.net MVC RTM - “project type is not supported”

After installing ASP.net MVC, when I attempt to load a existing or a new MVC application (straight from New Project - A project for creating an application using the ASP.NET MVC framework (1.0) (.NET Framework 3.5)) I get the following error:


Microsoft Visual Studio

The project file 'path' cannot be opened.

The project type is not supported by this installation.

OK Help

Tried reinstalling which didn't help. Tried devenv /setup which also didn't help.

Any ideas?

The reason was because I didn't have the Visual Web Development part of VS installed. I only had the C# language. As such, MVC didn't check and installed successfully but couldn't use the underlying part.

After installing the Web Dev bit everything worked as expected...

You could also try to run the following command:

devenv /ResetSkipPkgs

This will try to load any Visual Studio packages that failed previously at some point, such as the WPF project flavor package, which would cause the error message you're seeing.

Not sure if this is the same issue but going through the uninstall and re-install of beta and RC versions and finally the RTW I ended up with two ASP.NET MVC Web Application icons in my "File/New/Project" dialog.

If I click the first link, my project does not load correctly. But if I click the second one everythign works great.

I haven't dug into the templates folder to see if there is a remnant from a previous version or what.

Brian

The way I corrected this issue of not being able to open a ASP.NET MVC 1.0 for myself goes like this when I was using VS 2008

  • Install SP1 for VS 2008
  • Install MVC 2.0 framework
  • I realized I had an MVC 1.0 project and I used this tool to change the project to MVC 2.0.

The tool works great, props to Eilon Lipton never met the guy but I'm down with anyone that will make my life easier.

http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx

你为.Net和VS2008安装了SP1吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM