-->

Can't add Ado .Net Entity Data Model

2019-06-10 07:19发布

问题:

I'm doing these steps:

  1. Create new vs2010 C# console application
  2. Project menu -> Add New Item
  3. select Ado.NET Entity Data Model -> click Add
  4. Entity Data Model wizard window opened.
  5. Select Generate From database -> Click Next
  6. The next window appears for less than 1 second and it gets closed automatically.

I tried to reset vs2010 setting but no good news, the problem still exist.

I also tried it with ASP.NET Website.

What is the problem?

回答1:

I had a similar problem and finally fixed it by deleting

c:\users\myusername\appdata\roaming\microsoft\visualstudio\10.0\SeverExplorer\DefaultView.SEView.



回答2:

I can resolved this fix:

  1. in the route C:\Users\username\AppData\Roaming\Microsoft\VisualStudio\11.0\ServerExplorer
  2. delete the file "DefaultView.SEView"
  3. press keys window + R-> and write devenv.exe /ResetSettings
  4. And Open Visual Studio