Designer view for EDMX file gone in Visual Studio 2010

I ran into this interesting little problem today and thought I’d share the solution for anyone else that runs into it as well…

In my Visual Studio 2010 project, I needed to make some modifications to the EDMX file being used by the Entity Framework to connect to the database. However, upon double-clicking the EDMX file, it was opened using the XML editor rather than the visual designer (called “ADO.NET Entity Data Model Designer”). Upon further investigation, it appeared that the visual designer was no longer even registered/installed as it didn’t appear in the list of “Open With…” editors (right-clicking the EDMX and selecting “Open With…”).

After doing some Googling, I found the following solution:

  1. On the Visual Studio 2010 installation DVD, browse to the “\WCU\EFTools” folder and copy its 2 files to your PC.
  2. In the folder where you copied the files, create a file named “Log.txt”.
  3. Open a cmd prompt (one that has administrative rights) and navigate to the folder with the copied files.
  4. Run the following command: ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 /log “Log.txt”.

The installation takes a while, but after it’s complete you should be able to use the EDMX designer again in Visual Studio 2010.

I have no idea how this problem happened on my PC. I recall having Visual Studio crash yesterday. Perhaps something freaked out along the way. Either way, I’m back in business and hopefully this information can quickly help get you back in business if you run into this problem as well!

Thanks to StackOverflow for hooking me up with the answer to this problem. Here’s the StackOverflow post where I found the solution to this problem.

Enjoy!

Advertisements

6 thoughts on “Designer view for EDMX file gone in Visual Studio 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s