Unable to install MVC 3 - asp.net-mvc

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.

Related

ASP.NET MVC 4 Visual Studio 2010 project templates not present

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.

how can I install mvc4

I have visual studio 2010 and mvc2 installed on my machine. Now I want to install mvc4. How can I do that..
I have tried to install mvc3 and mvc4. But both attempt are failed. Do I need to download and install anything than mvc3.setup and mvc4.setup?
Install ASP.NET MVC in Visual Studio first go to this link https://www.asp.net/mvc/mvc4?ocid=soc-n-at-loc--TI-TP&WT.mc_id=soc-n-at-loc--TI-TP and install which edition you are using like visual studio 2012 you will get MVC 4 for that edition good lucky
You could download the standalone installer from here: http://www.microsoft.com/en-us/download/details.aspx?id=30683
Make sure you have SP1 installed for your Visual Studio 2010 before running the MVC installer.
You don't need to have ASP.NET MVC 3 installed in order to install ASP.NET MVC 4. Also it will work side by side with ASP.NET MVC 1 and 2.
You could use this link http://www.microsoft.com/web/handlers/webpi.ashx?command=getinstallerredirect&appid=MVC4VS2010_Loc that you can find in http://www.asp.net/mvc/mvc4 and that will install it using web platform installer (it's easier).

"Unable to evaluate expression" and Async CTP

Some time ago I have installed the Visual Studio Async CTP
And today I have installed ASP.NET MVC 3 (not RC).
I start receiving "Unable to evaluate expression" in debug mode.
So I have uninstalled Async CTP, ASP.NET MVC 3 and all related updates but with no results.
Would be anybody so kind as to help me figure out?
Example message:
Unable to evaluate expression term 'struct'
OK, here is my experience. I finally got it working... and no full uninstall of VS 2010 was required.
First of all, I am not sure if I had installed ASP NET MVC 3 RC or not. I already had ASP NET MVC 3 RTM and then installed Async CTP. I started getting issues described then uninstalled Async CTP and MVC 3, did not help... I later realised I had not done enough:
In control panel:
Uninstall ASP NET MVC 3
Uninstall ASP NET MVC 3 Visual Studio Tools
Uninstall ASP NET Web Pages
Uninstall ASP NET Web Pages Visual Studio Tools
Uninstall Web Matrix
Then click on "View installed updates" in Control Panel->Uninstall A Program:
Uninstall Async CTP
Uninstall kb2483190
Now install ASP NET MVC 3 RTM and it should work.
Apparently this problem arises when both MVC 3 RC and .NET Framework Async CTP are installed on the same machine.
You need to uninstall MVC 3 RC but since it also comes with ASP.NET Web Pages, NuGet and a Visual Studio update those have to be removed along with it.
To proceed open a Visual Studio command prompt* with Administrator privilege and run all of the following commands:
wmic product where name="Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET MVC 3 - VWD Express 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - VWD Express 2010 Tools" call uninstall
wmic product where name="NuGet" call uninstall
msiexec /package {BC0464FA-A0BA-3E38-85BF-DC5B3A401F48} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
msiexec /package {85076DFF-7A17-3566-9CC0-488E6E6D4494} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
If the problem still persists however uninstall .NET Framework Async CTP as well.
This error message usually arises when there is a fairly critical error trying to load the language expression evaluator in the debugger or if the expression evaluator itself has a setup issue. The very next thing I would try is to repair the Visual Studio installation. That will almost certainly clear up this error.
Full uninstall all visual studio components helped me.

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

windows 7 asp.net mvc RC

i have a problem with asp.net mvc on windows 7... asp.net mvc RC was previously installed and i installed MVC rtm... it says “the project type is not supported by this installation”... is there anyway to register this project type in to visual studio or unregister the rc version?
Uninstall every ASP.NET MVC installation (in control panel) and reinstall the final 1.0 release. If it didn't help, run Visual Studio command prompt as administrator and run:
devenv /resetskippkgs
Not sure. Helped me once. I hope that works for you.
I had the same issue. You have to install MVC 1.0 even though you may have MVC 2. I did that and it worked for me.
OS Version: Windows 7
IDE: Visual Web Developer 2008 Express

Resources