Sharepoint SE cannot connect with Visual Studio 2022

Copper Contributor

Hello, 
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.

 

kitanovskiB_0-1667825411227.png



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. 
   a. WSS_Content

   b. Sharepoint_Admin_Content

   c. Sharepoint_Config

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.

Thanks,

 

 

2 Replies
That is happening to me also, any news regarding that?

@fresko 

This was the solution for me.

• Step1: Download and install WebPI (https://www.microsoft.com/web/downloads/platform.aspx)
• Step2: Install Workflow Manager (https://docs.microsoft.com/en-us/previous-versions/dotnet/workflow-manager/jj193525(v=azure.10))

  1. Service Bus 1.1 with TLS1.2 support
  2. Workflow Manager 1.0 Refresh (CU2)
  3. Workflow Manger Client 1.0 Cumulative Update4
  4. Workflow Manger Client 1.0 Cumulative Update5

• Step3: Create a new farm, see (https://docs.microsoft.com/en-us/previous-versions/dotnet/workflow-manager/jj193514(v=azure.10))
• Step4: Configure according to Install and Configure workflow for SharePoint Server (https://docs.microsoft.com/EN-US/sharepoint/governance/install-and-configure-workflow-for-sharepoint...)
• Step5: Restart your machine

This solution was provided from official microsoft support. 
I hope this can fix your problem 😄

Ref Link: https://developercommunity.visualstudio.com/t/Sharepoint-SE-cannot-connect-with-Visual/10194837#T-ND...