I am getting this error when I am trying to create a new SharePoint empty project from visual studio
I am getting SharePoint connection error.
I have checked those steps:
1. Run VS as administrator
2.The user is set as sysadmin of the SQLServer, as well as db_owner of the following DBs.
3. The user is owner of the SP and has full control.
4. The site is added to the IIS host file.
5. I have cleared VS cache.
This also occur when I am trying to import SharePoint Solution File. (.wsp)
I am using SharePoint Server Subscription Edition and Visual Studio 2022 Community.