Cannot add Entity Data Model in Visual Studio - asp.net-mvc

I am running Visual Studio 08 Team Edition with .NET Framework 3.5 SP1 on WinXP. I am trying to add a Entity Data Model to my project, however, the option to add an "ADO.NET Entity Data Model" selection does not appear. To give you a visual, I am essentially following the directions here, but cannot get past step 5 (Right click on project and click Add New Item) because the option to add an EDM does not appear.
Any ideas? I'm sure I have all of the prerequisites.

I'm guessing that your VS 2008 SP1 installation did not complete successfully. Here are some things to verify:
Take a look at http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm and verify if any of the known issues apply in your scenario
Open a Visual Studio 2008 SP1 command prompt and type: devenv.exe /setup [ENTER]
Repair VS 2008 SP1 from "Add/Remove Programs" or try uninstalling and reinstalling VS 2008 SP1

Can you verify that you have:
Microsoft® Visual Studio Team System 2008 Database Edition GDR R2
The important thing to note is the GDR. Basically, it's like a service pack. They added some features, like Entity framework.
non-R2 would be ok too. the article you linked above doesn't list this at all, but it's required for entity framework

Here is a blog post about the issue.
Essentially, installing VS2008 SP1 (even if the about box on your installation can claim it's already SP1) resolved the issue for me.
Download page for SP1 here.

I was having the same issue as described here with VS2012. I have now installed VS2012 update 2 and this has resolved the issue, so if any one else stumbles upon this for VS2012, try that to fix the issue.

Related

New Asp.Net Project Template Dialog is empty

I have (just reinstalled) Visual Studio 2013 Professional (on Win 8.1) to try and fix this: If I try to create a new Web Project, for either .Net 4.5 or 4.5.1, then I see the screen below.
If I try to open an existing MVC 5 website (one I've just created through that wizard on another machine) - then it works just fine.
Equally, if I set the target framework to 4 then I get the previous MVC 4 template appear, and that works.
If I look in the Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\Web\CSharp\1033\ folder then I see WebApplication45 which appears to contain the content that this project template uses - so why is it broken!?
The machine did use to have VS2012 on it, and I notice that in the list of installed products for 2013 it has 'ASP.Net Web Frameworks and Tools 2012.2' - which I believe is a VS 2012 thing. So I'm wondering if that's interfering with it. But there's nothing on my Add/Remove programmes for this, so I don't know how to uninstall it!
Any help greatly appreciated before I throw my screen through the window :)
Please try the following:
Close VS, open Explorer and go to C:\Program Files (x86)\Microsoft Visual
Studio 12.0\Common7\IDE\PrivateAssemblies
Delete the following assemblies if they exist:
Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
Microsoft.VisualStudio.Web.Internal.Contracts.dll
Restart VS
In Tools > Extensions and Updates:
Update to lates VS2013 update (it is Update 3 now)
Install if not installed Microsoft ASP.NET and Web Tools
Install if not installed ASP.NET Web Forms MVC 4
Install if not installed MS VS ASP.NET MVC 5 Scaffolding
I solved it by removing all programs connected with .Net development and SQL (just being really cutthroat) - not just Visual Studio; going down my installed programs list from top to bottom:
Visual Studio 2013, obviously
All .Net Framework SDKs and Language Targeting Packs
All Azure tools SDKs (some start with 'Azure', one starts 'Windows Azure')
All SQL Server stuff - possibly too much, but I didn't need them outside of VS
IIS Express
I then rebooted and deleted all remaining Microsoft Visual Studio folders (I had v10, 11 and 12) from Program Files (x86) and all remaining SQL Server folders. SQL is also in the x64 program files, and that's used legitimately by the OS, so might want to skip that one.
I then rebooted again and reinstalled 2013 with Update 3 - and now the new project dialog works as expected.
It's most likely the removal of just one of those things that fixed it (my money is on clearing down the VS folders).
I fixed this by deleting these files from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies:
Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
Microsoft.VisualStudio.Web.Internal.Contracts.dll
(based on http://blogs.msdn.com/b/bharry/archive/2014/08/04/vs-tfs-2013-3-update-3-released.aspx#10550199).

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!

Visual Studio 2010 MVC Project type Disappeared

I have been working with visual studio 2010 Premium RTM for over a month. When I installed it I had a fresh install of windows. (No betas or previous versions of VS)
I have been creating new ASP.NET MVC2 C# projects since I installed it. I went to create a new mvc project today and I don't have that as an option anymore. I went in under the new project section not the new website section. I don't see it listed under C# or VB.
Is there a way to get that back without reinstalling visual studio?
I had this problem with Linq to SQL templates. Try the accepted answer on this other stack overflow question.
The solution was to run
devenv.exe /InstallVSTemplates
to reinstall the templates. It worked for me when I had missing templates in Visual Studio 2010.

how to correctly identify vs2008 version level?

At SO, I searched "identify version visual studio" but failed to find an answer.
Scenario:
A generally accepted best practice is to install all service packs related to the software that one is using.
The applies to Visual Studio 2008 too. In some cases, it is absolutely essential, for example VS2008 SP1 is required if one wants to install ASP.NET MVC v1.0 RTM.
For most software, "Help, About ____" will reveal the version and often includes SP level.
With my VS2008, I get a lot of information, some of it is clear:
Microsoft .NET Framework
Verson 3.5 SP1
and some of it which is less clear:
Microsoft Visual Studio 2008
Version 9.0.30279.1 SP
The problem is that it is difficult to tell whether VS2008 SP1 has actually been installed.
The same information appears to be displayed in Help, About on computers that have vs2008 SP1 as well as those that have not been upgraded.
Likewise, different editions, example "Development" and "Professional" show the same results via Help, About.
--
QUESTION: how does one correctly identify her/his vs2008 version level?
edit: found this:
How do the .NET Framework, CLR and Visual Studio version numbers relate to each other?
I wish Microsoft would make this easier.
#nos ... your QFE is a hotfix ... http://en.wikipedia.org/wiki/QFE.
AFAIK, you've likely applied a security patch.
I guessing the "30279" part of 9.0.30279.nnnn means SP1 and the "nnnn" is a subsequent update level.
edit #2:
MORE INFORMATION
The challenge I find is to identify the version easily.
While this may seem strange, and while unfortunately
I lack a time machine, at least once I was certain that
I already had vs 2008 SP1 but ASP.NET MVC would not install.
At that time I applied the MS SP1 upgrade;
while executing, the upgrade said it was upgrading SP1 !!
After upgrading SP1 to itself, ASP.NET MVC did install.
Ergo, I find this so confusing. It would be so
much easier if Microsoft showed via Help, About, this instead:
Microsoft Visual Studio 2008
Version 9.0.30279.nnnn SP1
edit #3:
http://blogs.msdn.com/bharry/archive/2008/04/19/a-new-home-for-visual-studio-hotfixes.aspx
There are currently 169 hotixes:
http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=Hotfix
at least two to the hotfixes apply to vs2008 sp1:
http://code.msdn.microsoft.com/KB957912:
"KB957912 - Update for Visual Studio 2008 SP1 Debugging and Breakpoints"
http://code.msdn.microsoft.com/KB957507:
" KB957507 - Loc Intellisense to replace all Loc Int shipped with VS 2008 SP1"
"Please be aware [hotfixes may have
NOT] gone through full Microsoft
product regression testing nor has it
been tested in combination with other
Hotfixes."
UPDATE: on a windows 2008 web server R2,
I have Microsoft Visual Studio 2008 Version 9.0.30279.1 SP
which is "in theory" SP1 ~~ however, installing SQL 2008 Web Server
failed with the mysterious explanation that I required vs2008 SP1!!!
UPDATE CONTINUED: after applying the MSDN update to my
windows 2008 web server R2, I still have
Microsoft Visual Studio 2008 Version 9.0.30279.1 SP
which now really should be SP1 ~~ and I assume it must be
because the pre-install validation "rules" for SQL 2008 Web Server
passed and the SQL server installation then ran and completed successfully.
I have the same information. You're running Visual Studio 2008 SP1. This runs on top of .NET 3.5 SP1. Service Pack 1 for Visual Studio and .NET 3.5 is installed.
Well actually you can identify it with the given version. In your case the 9.0.30279.1 is really VS2008 SP1, it redistibutes Microsoft DLLs with this version (see C:\Windows\Winsxs for all of them).
So I suggest that you google for the version number. That should give you the correct VS2008 version.

How do I get MVC installed into Visual Studio 2008?

Does anyone have any basic instructions for setting up a first MVC project in Visual Studio 2008? I just installed Visual Studio 2008 and I am finding various instructions on how to set up the programming environment, but it's very complicated and there is no way to tell if the route I am taking is the best one.
If I want to start developing a MVC project, what do I need to do in order to get it going?
I am very confused by the "Web Client Guidance" instructions. For example, they don't say where to put the Microsoft.Web.Mvc.dll file.
Use Visual studio 2008 sp1 to get mvc installed...
Here is the download link
To get started With MVC
System Requirements
Supported Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP
.NET 3.5 SP1. Visual Studio 2008, Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 are required to use certain parts of this feature.
The official Microsoft MVC links for Visual Studio 2008 now seem to be dead.
To get this working on my old Vista laptop (with Visual Studio 2008) in 2013, I did this:
- Upgraded to Visual Studio SP1
- Followed this link to download and install "AspNetMVCRC-setup.msi" (1.74 MB):
http://go.microsoft.com/fwlink/?LinkID=141184&clcid=0x409
Once that was in place, my old Visual Studio let me create "Web | ASP.NET MVC Web Application" projects. Took about an hour and a half from end-to-end.
All I did was install the MVC installer and I opened their example app and it worked.\
MVC Installer
First of all, you need to download MVC from here.
After that, proceed with the installation.
You might want to refer to the tutorial for starters.

Resources