views:

1754

answers:

3

I am running Visual Studio 08 Team Edition with .NET Framwork 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 ( http://www.aspfree.com/c/a/ASP.NET/Introduction-to-the-ADONET-Entity-Framework-using-ASPNET/) , 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.

A: 

1) Is the target framework for your project set to .net 3.5? (in project options)

2) Is it a website or webapp project? If website project, you need to add it under app_code...

KristoferA - Huagati.com
Yes, the target framework is set to 3.5
CoolGravatar
+1  A: 

I'm guessing that your VS 2008 SP1 installation did not complete successfully. Here are some things to verify:

  1. 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

  2. Open a Visual Studio 2008 SP1 command prompt and type: devenv.exe /setup [ENTER]

  3. Repair VS 2008 SP1 from "Add/Remove Programs" or try uninstalling and reinstalling VS 2008 SP1

Jose Basilio
It looks like none of the issues apply. I type devenv.exe /setup but it returns nothing, just a newline and a prompt appears again. Is it supposed to do anything?
CoolGravatar
devenv /setup does not display anything, it just restores settings behind the scenes. Have you tried repairing or even reinstalling your VS2008 SP1?
Jose Basilio
I just ended up reinstalling VS 08 and SP1...it works now although I'm still curious as to why exactly I couldn't add an EDM. Thanks for the help
CoolGravatar
A: 

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

ajma