Share via

Designer error while opening a form

VIJAY SRIDHARA 0 Reputation points
2025-03-16T04:54:16.3066667+00:00

This project ran well on a different computer, I copied everything as is, the application builds fine and runs fine, but the form designer throws this weird clue less error, on any form. I Cleaned solution, I removed Debug and Obj folders and rebuilt. but in vain. Any help is appreciated.

User's image

Developer technologies | Visual Studio | Debugging
0 comments No comments

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,836 Reputation points Microsoft External Staff
    2025-03-17T08:25:46.7533333+00:00

    Hi @Proton,

    Please first try to run Visual Studio as administrator, see if this issue disappears.

    If the issue persists, try following:

    1. Close VS, remove(manually) the hidden .vs folder in your solution folder and then rebuild your project.
    2. In VS, right-click your solution, select Restore NuGet Packages option to restore the NuGet packages, check if this works.
    3. Close VS, rename the "C:\Users\username\AppData\Local\Microsoft\VisualStudio\1x.0_xxxxxxxxxxxx\ComponentModelCache" folder from "ComponentModelCache" to "ComponentModelCache_backup". Open Developer Command Prompt for VS 2022, run devenv /ResetSettings command to reset VS settings.

    Feel free to let us know the results.

    Best regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.