sửa lỗi To prevent possible data loss before loading the designer, the following errors must be resolved:

heo 0 Reputation points
2024-07-21T11:16:37.6966667+00:00

User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,336 Reputation points Microsoft External Staff
    2024-07-22T07:18:00.0733333+00:00

    Hello @heo,

    Welcome to Microsoft Q&A forum.

    If the same error doesn’t appear on a newly created project, try to close Visual Studio, manually delete the bin, obj and the hidden .vs folder in your project/solution folder. Launch VS, rebuild your project, see if the designer can be loaded correctly.

    If the same error appears on a newly created project, please try to repair VS from VS Installer > More > Repair.

    Besides, it seems that you are running VS as administrator, if you try to run VS normally(non-admin), will the error appear?

    BTW, can this project build and run correctly?

    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.


Your answer

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