Used Web Platform installer to install the MVC Framework but the MVC template isn't available - asp.net-mvc

I just installed Visual Web Developer and the MVC Framework using the Web Platform installer, I used the ASP.NET option and it says that MVC is installed, but it doen's show up in the templates list when I open a new project.
I installed in Windows XP with a limited user (typed the Administrator password to allow the install) I guess this is the problem, but, how can I fix it?
I tries logging in with the Administrator account and executing the MVC installer but still can't get the Template in Visual Web Developer.
Any clues? Or any way to register the templates manually?
Thanks.

I uninstalled the MVC Framework and installed it again, now the templates are registered just fine.
Don't know what I did wrong the first time, but luckily it's working now.

Related

How do you properly get/deploy ASP.NET MVC?

I'm thoroughly confused about how to properly deploy ASP.NET MVC with my application. As far as I understand, there are the following ways you can get it on a machine:
You can download a separate installer and install it on a machine that has the approprite .NET framework (although which MVC version requires which .NET framework?)
Some versions come along with .NET framework itself (though I can't find which version of MVC is shipped with which version of .NET);
Some versions are installed with Visual Studio (though again, no idea which versions are installed with which versions of VS). In this case, you can set Copy Locally to true for these references and perform a "bin deploy". You might need to add some extra references though (not sure which though).
You can also download MVC as a NuGet package, in which case it also downloads some other unrelated packages like WebPages, Infrastructure and Razor (which is my personal WTF - wasn't Razor a core part of MVC?). In this case the build process will automatically do a "bin deploy" by default (I think...)
So... WTF? What is the proper way to add MVC to your development workstation, what is the proper way to add the references to your project (NuGet? GAC?), and what is the proper way to deploy it to the target server (separate installer? .NET installer? bin deploy?)
"Proper" Development:
The "proper way" (by which I mean standard/redistributable way) would be using Nuget for your references. This means you can easily manage different versions and anybody else working on your project has a standard repository from which to pull the external requirements.
The NuGet documentation has a decent explanation of how to add references.
To install the appropriate version of MVC for developing through Visual Studio, just download and install it from the ASP.NET MVC website. This will install the necessary templates for you to create a new MVC project in Visual Studio. This will also include the necessary binaries, etc.
"Proper" Deployment:
Use bin deploy to deploy to your webserver. This means you don't need full admin priviledges to install the MVC requirements.
Phil Haack's guide will walk you through the process of bin deploying MVC3+
Keep in mind, the web server does need the appropriate .NET platform installed. You should install this via the appropriate redistributable installer if it is not already installed on the server.
Referring to the deployment i publish my asp.net app (i usually make web applications) to the file system in a directory (you can set also a server there, but i don't like it) and make an upload to the server with an FTP client of all the deployed folders. All the changes that i make to the app after (like bug correction) i deploy all the app again and upload single parts.
I hope i get your question in part, this is my first answer in SO.

ASP.NET MVC3 not working in Windows 8

is there anything special I need to do to get ASP.NET MVC3 enabled on my Windows 8 Release Preview install? Creating even a blank ASP.Net MVC3 Razor application in VS2010, deploying to the local IIS instance as a new application, and loading the page in the browser doesn't work. I'm met with the following error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
So I've then gone in to the new VS2010 project, right click, select "Add Deployable Dependencies" and selected "ASP.NET MVC" along with "ASP.NET Web Page with Razor syntax"
Then I re-deploy the project to local IIS application. No change. Still "web server not configured to list contents of the directory".
It's worth noting the VS 2010 Development Web Server works fine.
Any ideas?
Found it. Turns out even though I'm using ASP.NET MVC3 and had the .Net 4.0 framework installed, the Windows 8 "feature" for ASP.NET 4.5 needed to be installed for all this to wire up. Seems a bit counter-intuitive, but changing that did it.
You may want to consider running the MVC3 installer on your host machine so that all dependencies for MVC3 projects are stored in the GAC. If you need the install package you can download it from:
http://www.microsoft.com/web/gallery/install.aspx?appid=MVC3
I can't verify that this works on the Windows 8 preview, but it would be my first instinct upon running into your problem.
Did you ensure that the worker process for the site is configured for .NET 4?
When you say you "Deployed", how did you do that? It sounds like the folder is not being set to an application.
For me .NET 3.5 was not installed for IIS 8 in Windows features. Although I'm pretty sure my app is .NET 4.0... Worth trying though.
I had problems installing MVC3 MS VS 2010. Windows 8 x64. The platform installer shows no errors.
Root cause : aspnetwebpages.msi breaks updating web.config files. I updated two web.config files which appeared to only contain blanks.
Here are my directions:
Ensure C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config is valid. Use web.config.default, copy then rename to web.config to correct if it looks wrong.
Ensure C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config is valid. Use web.config.default, copy then rename to web.config to correct if it looks wrong.
I don't know why the files were bad in the first place.

MVC project on VS2010 error : The project type is not supported by this installation

I'm trying to open MVC project using VS2010.
I'm opening this project from TFS server but I'm failed to open it
and getting error :
The project type is not supported by this installation.
please help.
You basically don't have something installed. That's why you get this error. I am very sure that you need to install the VS MVC project type - either MVC 2 or MVC 3. Use The Web Plaform Installer to install. The web platform installer can be found here: http://www.microsoft.com/web/downloads/platform.aspx. Once you have installed it (it is only 2MB) you need to search for "MVC", install the MVC 2 and MVC 3 project templates.
I got this error when I forgot to select the Web Developer feature in the Visual Studio setup. Unfortunately, the error you mentioned is the only error you get when Visual Studio 2010 is installed without this feature. You can install the Web Developer feature using the Windows control panel.
By popular demand (7+ and counting), I'm placing part of CodingWithSpike's comment here. Specifically, the procedure to explicitly add Visual Web Designer to VS install.
open Control Panel
select Programs and Features (or Add/Remove Programs)
choose Visual Studio
click "Uninstall/Change"
this opens the VS installer in maintenance mode.
Click "Next" once
Click "Add or Remove Features"
Checkbox "Visual Web Designer"
click Update button.
Enjoy having a working product!
Edit the project.csproj file and look at the <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
The GUIDS above includes MVC 3 Tools Update. That's a good guess of what you are missing. You can get MVC 3/TU from http://www.asp.net/mvc/mvc3
BTW, that install includes VS2010 SP1 which is required for the TU edition.
If you've installed Visual Studio 2010 after Visual Studio Web Dev Express and MVC4, Visual Studio 2010 doesn't seem to pick up the MVC 4 templates. Running the MVC 4 installer again via the Web Platform Installer doesn't fix it. Repairing the MVC 4 installation fixed it in my case:
Under Control Panel, choose Programs/Uninstall a program.
Find Microsoft ASP.NET MVC 4 and double-click it.
The Microsoft ASP.NET MVC 4 Setup prompt will appear. Choose Repair.
Visual Studio 2010 Express to Pro, ASP.NET MVC 4 installed but not an option?
in my case, i had opened my VS2010 solution, in vs2012, i was getting the project type is not supported, tried re installing mvc3 as was suggested, cancelled re installation, then i had the issue i couldn't open the project in VS2010 anymore. then tried to re install mcv3 again. solution was, uninstall mcv3, uninstall mcv4, then reinstall mcv3, then i could reopen my project in VS2010 . hope this helps someone!

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
Did you install SP1 for .Net and VS2008?
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

Creating new ASP.Net MVC project - Unit Test Dialog does not show up

When I create a New Project of type ASP.Net MVC Web Application, I expect the dialog for unit test applications to show up, but it does not. I cannot find the Unit Test App among the product types I can create either. How do I set up my VS so that the dialog shows up?
I have installed Visual Studio 2008, .Net Framework 3.5 SP1 and ASP.Net MVC Framework (Beta).
As #MrJavaGuy says, you need to install at least the Professional, not Express, version of VS2008. Alternatively, you can install nUnit and/or TestDriven.Net and get unit testing capabilities. Info on nUnit can be found at http://www.nunit.org/ and TestDriven.Net at http://www.testdriven.net/. I recommend TestDriven.Net even if you have the testing capabilities of Visual Studio baked in.
Turns out one of the problems were that I hadn't installed Testing Capabilities with my VS installation - running the installer and adding the feature made everything roll smoothly =)
Had the same problem with Visual Web Developer Express, I found this blog.
http://blogs.msdn.com/webdevtools/archive/2008/05/30/asp-net-mvc-preview-3-tooling-updates.aspx
I downloaded
http://www.box.net/shared/zmp0cdxsss
and that worked for me.. Not sure if this will sort your issue though. Best of luck with it.

Resources