Failed to parse method 'InitializeComponent'. The parser reported the following error 'Invalid symbol kind: Namespace'. Please look in the Task List for potential errors.

Nurul Amirah Hayati Azahari 0 Reputation points
2023-12-28T17:13:19.31+00:00

This error pops up when I add a new item from another project to my main project.

When I run the project (have of the form that I took from) it's still okay

But when I add the form to the main project, the design page cannot be open.

I just took the vb. file and added reference 'System.Windows.Forms.DataVisualization' to solve redlined issues but still, the error did not solve

Developer technologies VB
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-12-29T08:37:11.06+00:00

    Hi @Nurul Amirah Hayati Azahari ,

    Please open this form's .designer.vb file to see if there are any error in it.

    Especially in Sub InitializeComponen().

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments

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.