ASP.NET MVC 4 Visual Studio 2010 project templates not present - asp.net-mvc

I have downloaded and installed all of the prerequisites for using MVC 4 with VS2010. The VS2010 SP1 update, ASP.NET MVC 4 for VS2010, SSDT for VS2010, and LocalDB. When I go to create a new website in VS2010, there should be an "ASP.NET MVC 4 Web Application" template, but there is not. How can I get the templates so I can start a new MVC 4 website in Visual Studio 2010?

Have you tried reinstalling the templates. Follow these directions.
http://msdn.microsoft.com/en-us/library/vstudio/ms247116(v=vs.100).aspx
short answer, open up visual studio command prompt and type:
devenv /installvstemplates
That should restore all your templates.

Check if Project Templates are installed:
Manually search if you find the project template (it would be *.zip) inside %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Web\1033
If YES, please run devenv.exe /installvstemplates
If NO, then its guaranteed that the ProjectTemplates are not installed. You would have to reinstall to get the ProjectTemplates on your disk.
For the records:
All the installed project templates are available here: (this is the default path)
%ProgramFiles%\Microsoft Visual Studio
10.0\Common7\IDE\ProjectTemplates
This is where the File->New ->Project Dialog loads ProjectTemplates from, and is displayed in the Same Folder heirarchy convention.
You could add another path by updating
Tools -> Options -> Projects and Solutions -> General -> User Project
Template Location
On studio(devenv.exe) launch/loading it would try to create a ProjectTemplateCache on localappdata or %ProgramFiles% based on whether you are local user or admin.
The cache inside Programfiles are available here
%ProgramFiles%\Microsoft Visual Studio
10.0\Common7\IDE\ProjectTemplatesCache
This ProjectTemplateCache directory is Created (if doesnt exists) or Updated(if already exists) by running *devenv.exe /installvstemplates on cmd. This command is run during installation of Visual Studio. Ideally all other installers who ship project templates should run this command. But, sometimes this might fail due to access rights. So its is safe to run it again manually.

See this question
If you didn't install the Visual Web Developer component, the ASP.NET
project templates won't be fully installed. Naturally, because the
installer then thinks it doesn't need to put them there as ASP.NET is
a web development framework.

1) Install it as Administrator. right click on file and run it as Administrator.
2) Uninstall it and Install it as administrator again could solve your problem

If the install went through fine without errors/warnings/exceptions -
Try changing the .NET framework on the New Project window, make sure you are viewing .NET framework 4.0 templates.
PL

Repair MVC 4 installation. It will take care of project template installation

Same as me.
make sure register and activation vs2010 product.if vs not register and not type any key for activation vs You can not ins mvc4 for it.
Please register vs2010 and re-install mvc4.then you can see mvc4 when you create project.

Related

Unable to install MVC 3

I am attempting to install asp.net MVC 3 to use with Visual Web Developer 2010 Express. I try to install from AspNetMVC3ToolsUpdateSetup.exe. The install log shows this:
MSI (s) (08:E4) [00:22:35:745]: Product: Microsoft ASP.NET MVC 3 -- A
later version of Microsoft ASP.NET MVC 3 is already installed. Setup
will now exit.
A later version of Microsoft ASP.NET MVC 3 is already installed. Setup
will now exit.
I have MVC 2 installed (it came with VWD 2010). I do not see MVC3 or MVC4 in installed programs list. I don't have NuGet installed. How could I manage to install it?
I apparently had a corrupted installation. I was unable to see MVC3 installed in control panel and I was unable to see it in visual studio, but the installer detected it anyway.
I managed to install it by unzipping the installer exe and then running aspnetmvc3vwd2010tools.msi from within it directly. I found that it was the correct msi by accident. Running setup from with in it failed consistently.

How correctly install EpiServer Commerce 7 on MVC Site?

I am trying to install EpiServer Commerce 7. Found this one guide Building EPiServer Templates with MVC Razor Part 1 Can some body explain this first step Create a New EPiServer Project in tutorial? I created new project in Visual Studio then in Development Center of EpiServer I created new site with SQL database, but it created site in another folder wwwroot. How can tie this two projects in one?
From the EPiServer Documentation (http://world.episerver.com/Documentation/Items/Installation-Instructions/Installing-EPiServer-updates/Installing-Commerce/):
Download and extract the installation files.
Run Setup.
Select the products you want to install.
In Extension Manager in Visual Studio, install EPiServer CMS extensions.
Create a site from VS using EPiServer Web Site, or from EPiServer Deployment Center.
In Extension Manager in VS, install NuGet Package Manager.
Add "http://nuget.episerver.com/feed/packages.svc/" as EPiServer source.
Install EPiServer.CMS.UI for CMS, and EPiServer.Commerce for Commerce.
Build your project.
Now EPIServer CMS 7.5 (8) has changed old way. You need to download Visual Studio extension. You can create empty or template projects and can do custom development on it. You can also add custom add-ons.
1- Download VS extension.
http://world.episerver.com/documentation/Items/Installation-Instructions/installing-episerver/
Direct link
https://visualstudiogallery.msdn.microsoft.com/4ad95160-e72f-4355-b53e-0994d2958d3e

VS 2012: 'Add Installer' from Windows Service not working

Created a windows service in VS2012. Right clicked on the service and selected 'Add Installer' as done in VS2010
Got the message:
Unable to add installer. The designer could not add a Project Installer.
Anybody run into this ?
Check to see if the files already exist. In my case, a previous developer excluded the installer files from the project, so I did not see them until I opened a Windows Explorer on the source folder.
Do you have an Express version? I have not run into this problem with Visual Studio Professional 2012 on Windows 8 N Pro. I can right click on the designer surface and click on item "Add Installer" and a class is created called 'ProjectInstaller'.
You can create the project installer class manually. Designers are overrated anyway. I have written a blog article on how to do this.
Simple Installer for Windows Service Using Visual Studio 2012
Is there a reason you need a deployment wizard? Is there a configuration parameter you need to prompt the installing user with? I generally just use a configuration file and package up each environment's configuration with the deployable.
The Project Installer is not included in VS 2012. If you right click your solution and choose Add, New Project, then go to Other Project Types and choose Setup and Deployment, it should take you to the InstallShield page where you can download and install the Limited edition of InstallShield for free (you will have to register and get an activation code via email). Once installed, repeat the steps above and it should prompt you to either register the software or continue with a trial version.

Azure and the MVC2 Web Role template

I tried creating a Cloud project in VS2010. When I try to add the ASP.NET MVC2 Web Role template and click okay then I get the following message appear in a dialog box.
The project template references by the roletemplatedata.xml file cannot be found
I tried a remove and reinstall of the 1.3 SDK but that didn't help. I tried a reinstall of the MVC2 tools but that didn't help. I wish VS2010 gave a bit more information. There are many roletemplatedata.xml files and it doesn't give me a clue as to what is missing.
Anyone else have a similar problem?
Go to Add/Remove Programs and add Visual Web Developer feature (if it's not installed) to the VS Setup. If it is already installed then uninstall this feature once and reinstall again.
Please check if the following blog entry helps you:
http://blogs.msdn.com/b/avkashchauhan/archive/2011/05/15/creating-mvc-2-web-role-in-visual-studio-2010-cause-error-quot-the-project-template-referenced-by-the-roletemplatedata-xml-file-cannot-be-found-quot.aspx
What do you have here:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CloudService
Execute:
tree /F "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CloudService"

ASP.NET MVC 2.0 does not install with visual studio 2010 professional?

Hi all I installed vs 2010 and it should have asp.net mvc 2.0 but it didnt install it. I tried installing it manually but it still does not show under the new projects tab..but it shows installed in control panel. I had vs2010 rc1 before and uninstalled it and it had mvc 2.0 but now for some reason i dont have it! ..Can anyone please help me out...
MVC is published standalone. ASP.NET 4.0 is bundled with VStudio 2010, but you'll need to either download MVC 2.0 or install it using the Web Platform Installer
You're right. Sorry, I had a small brain-fart there. If the projects aren't showing up in the New->Project Dialog, that doesn't neccesarily mean MVC isn't installed, It may just be installed Incorrectly.
Are the assemblies registered in the GAC, you should check this. Also check your VS2010 configuration to see where it's pointing for it's project templates, and verify the files aren't there.
Check that the AddIn DLL is where it should be:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Microsoft.VisualStudio.Web.Mvc.2.0.dll

Resources