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

Aivaki 1 Reputation point
2022-01-19T16:15:14.247+00:00

в 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

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,834 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Aivaki 1 Reputation point
    2022-01-19T16:16:14.813+00:00

    Closing the project and the constructor does not help.


  2. Andrew MacGillivray 1 Reputation point
    2022-06-23T14:27:12.523+00:00

    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.

    0 comments No comments