question

Aivaki-1358 avatar image
0 Votes"
Aivaki-1358 asked AndrewMacGillivray-2541 answered

Either VCProject or VCCodeModel is not ready yet. Please close designer and try again.

в Microsoft.VisualC.CppCodeParser.Parse(TextReader codeStream)
в System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
в Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
--- End of stack trace from the previous location where the exception was thrown ---
в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
в System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

This problem appears for the second time. Last time, creating a new project helped me, but the form was reset. How can I fix this without doing it all over again?

VS 2019

c++windows-forms
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

May I know what project you created and could you provide steps to reproduce the problem?

0 Votes 0 ·

Blank project CLR (.NET Framework)

The problem is already solved. Details described.

0 Votes 0 ·
Aivaki-1358 avatar image
0 Votes"
Aivaki-1358 answered Aivaki-1358 commented

Closing the project and the constructor does not help.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Didn't wait for an answer. I had to create a new project, moving all the code there. Now everything works.

Maybe it's broke because I accidentally opened a VS 2019 CLR project in VS 2022.

0 Votes 0 ·
AndrewMacGillivray-2541 avatar image
0 Votes"
AndrewMacGillivray-2541 answered

I am having the same issue. I was working on a CLR (.NET Framework) C++ project where the designer had been working fine. I accidentally clicked and dragged in an area outside of the window in the designer, then this error started and I have not been able to fix it. The project still compiles, but I cannot access the designer.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.