Can't add Ado .Net Entity Data Model

2019-06-10 07:14发布

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?

2条回答
Fickle 薄情
2楼-- · 2019-06-10 07:55

I had a similar problem and finally fixed it by deleting

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

查看更多
Bombasti
3楼-- · 2019-06-10 07:57

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
查看更多
登录 后发表回答