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:
- On the Visual Studio 2010 installation DVD, browse to the “\WCU\EFTools” folder and copy its 2 files to your PC.
- In the folder where you copied the files, create a file named “Log.txt”.
- Open a cmd prompt (one that has administrative rights) and navigate to the folder with the copied files.
- 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.