Click here to Skip to main content
15,877,565 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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)
Posted
Updated 13-Feb-24 19:29pm
v14
Comments
0x01AA 13-Feb-24 8:09am    
It sounds like one of the components is not OK and does occasionally cause an exception.
YDaoust 13-Feb-24 8:14am    
Have you already experienced this ? Component not ok across Windows platforms and Visual Studio versions ? Sounds weird...
0x01AA 13-Feb-24 9:18am    
I've experienced designer crashes when my self-developed components misbehaved.
YDaoust 13-Feb-24 10:34am    
I am using the standard widgets.
OriginalGriff 13-Feb-24 8:13am    
Just so you know for next time: When you paste a "raw link" like:
https://imgur.com/a/ycvdU1g
The system adds the required tags (and grabs the remote site page title for you as well):
<a href="https://imgur.com/a/ycvdU1g">Imgur: The magic of the Internet</a>[<a href="https://imgur.com/a/ycvdU1g" target="_blank" title="New Window">^</a>]

I fixed the link for you, but it's a load easier and better to just copy'n'paste the error text instead of linking - many members won't follow links because we never know what is at the other end (and we've had some unpleasant images posted in the past).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900