7

All of a sudden I cannot update the .edmx files I have in all of my projects in Visual Studio 2022. This is something I have done tons of times on various projects for years: open the .edmx, right click empty space, "Update Model from Database".

Now it brings up a dialog for choosing my data connection (the connection strings are already in the config files and have been for years). Then the dialog just closes with no errors at all. Happens for all projects and don't know where to go from here?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Nick Reeve
  • 1,658
  • 2
  • 22
  • 32

4 Answers4

5

I just experienced the same issue with Visual Studio 2022, and upon further investigation, I discovered that there are issues with VS2022 and .edmx from version 17.4 onwards.

Nevertheless, it appears that the development team behind VS2022 is already aware of this issue and is expected to release a new version that addresses it. However, I was able to "fix" it temporarily by following the workaround mentioned in the link, which involved removing “MultipleActiveResultSets=True;” from the connection string in the app.config.

1

I was having the same problem but things returned to normal after I upgraded to Visual Studio 2022 version 17.5.3.

Scott Munro
  • 13,369
  • 3
  • 74
  • 80
1

Microsoft has fixed this issue in the 17.5.5 version. I update mine and it worked! Hope this will help.

An Khang
  • 261
  • 2
  • 9
0

The good old solution to delete the .edmx file and then recreate it worked for me.

Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123