6

In Visual Studio 2019 16.6, I tried opening a TSQL file but get this error

An error occurred while initializing the frame's content System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.set_StubInfo(StubWindowInfo value) at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(FrameMoniker frameMoniker, Boolean isDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, Guid rguidCmdUI, ViewGroup parent, IVsWindowFrame& ppWindowFrame)

1

3 Answers 3

2

A work around is to right click, Open With and use a different editor.

This is only temporary however and if you use the other editor as default, it too eventually succumbs to the issue and you have to switch to the original / alternate.

Open With dialog

1
  • 1
    More of a workaround than a fix, you don't get the visual table designer with a table definition file
    – user917170
    Jun 1, 2020 at 23:05
0

Have also encountered this issue. A temporary workaround, for me, has been to restart the application as it seems to happen when I leave Visual Studio 2019 open between remote sessions. Of course, this is not a fix but it seems that Microsoft is working on one.

0

This issue still persists, atm Microsoft Visual Studio Enterprise 2019 Version 16.11.5

Seems that this issue just occurs with RDP connections.

This is the official ticket https://developercommunity2.visualstudio.com/t/An-error-occurred-while-initializing-the/1281388

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Nov 2, 2021 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.