Hi anonymous user,
To add the webpart to webpart page, the webpart needs to be in the Web Part Gallery of the site.
If your Visual Webpart and WebPart page are in a project, you cann't put the visual webpart to webpart page. We can only add the webparts which are in the webpart gallery to a webpart page.
As a workaround. you could add the webpart after deploying the solution.
If an 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.