I have been using Visual Studio for ages, developing WinForms applications.
Though this has always been irking, I am used to the fact that switching from the Code mode to the Designer mode often crashes the Designer, showing a call stack that is of no use to me. It can also occur just launching VS with a file previously opened in Designer.
In such cases, merely closing and reopening the Designer may work.
Interestingly, this occurs with several versions of Visual Studio, from 2008 to 2022. It occurred with many projects, even letting only VS touch the UI (no hacking of the graphical code). What strikes me most, is that the problem seems to be ignored by Microsoft (most of the time they claim that they cannot reproduce), and though it is reported in various forms in forums, I have never seen an explanation nor a fix. Or am I the only one ?
Typical reaction from Microsoft: "Thank you for the feedback, but our team was unable to prioritize it at this time as they are working on problems with broader customer impact." (The problem is present since at least 9 years !)
I am not after a solution, I'd rather like to know if others have the same experience and feelings.
What I have tried:
As said, I tried to find feedback on various forums, to no avail.
For the curious ones, an example of Designer screen:
The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A)
Instances of this error (1)
1. Hide Call Stack
at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider()
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)