'LINQ to SQL designer not opening/timing out (VS 2022)

On Visual Studio 2022, Windows 11.

Linq to SQL tools is installed from installer (Individual Components).

When right clicking a dbml file and View Designer, it just sticks on this and eventually needs an end task:

DBML fail

Tried (to no avail):

  • Clearing all app.config connection strings in the same project (in case it was silently barfing on one of those)
  • Installing older .NET frameworks, ticking on Data Storage and Processing and Data sources and service references

Any ideas what might be causing this? (Ran OK under Win 10 / VS 2022).



Solution 1:[1]

I experienced the same problem on Win8 with VS 2015 and 2017 and 2019, Win10 with VS 2015 and 2017. I did not solve the problem. Do not know what causes this problem. But now on Win11 with 2022 I opened my problematic DBML file, it took really long time to open (during opening it showed Not responding etc.) but finally VS opened DBML file. Then I made a change in the designer (just moved class a little bit = change = auto-generated file will be re-generated after save) and saved. Now this particular DBML file is opened within a second. Try it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tom C.