SharePoint Server Subscription Edition cannot connect with Visual Studio 2022 - visual-studio

I am not able to connect SharePoint Server SE to Visual Studio 2022.
So, I am getting this error when I am trying to create a new SharePoint empty project from visual studio
I have checked those steps:
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
The user is owner of the SP and has full control.
The site is added to the IIS host file.
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.
Note: I checked SharePoint Server 2019 and Visual Studio 2019 and this combination works fine.
Thanks,

Please try to make sure below:
This http://testnet is accessible in browser
Did you enabled any Alternate access mapping or any entry in host file
Create New Website via SharePoint Central Admin and try again.
Deploy the same solution with different Web Applications URL.

Related

Adding a new team project to Team Foundation Server 2015

I am trying to set up Team Foundation Server for my official visual studio projects, and we have set up TFS 2015 - Basic Server setup.
I have been working with Visual Studio 2012 in my development machine and trying to connect to the TFS and add projects to it.
When I go to File -> New Team Project, I got an error saying 'TF0172: You are trying to create a team project either without required permissions or with an older version of Team Explorer. Contact your project administrator to check your permissions or to determine how to upgrade Team Explorer'.
I have admin rights in the TFS server as well as in the development machine so the error machine does not look like it is a permission issue.
So trying to see if VS2012 is compatible with TFS 2015, or is it possible to make both compatible?
I have also updated my Visual Studio 2012 with the update 5.
Creating a team project requires a matching version of Visual Studio. So, to create a team project in TFS 2015, you need Visual Studio (or Team Explorer) 2015.

Can't edit the process template in Process Template Manager

I'm using TFS 2013 and Visual Studio 2012 and I'm trying to edit the process template.
On the following page it says: "You must be a member of the Project Collection Administrators group".
Even though my account is in Project Collection Administrators group I cannot download, edit nor upload process template from Visual Studio, as you can see from image below:
Any clues?
I've figured it out. For TFS 2013 in order to be able to edit and upload process template, you have to have Visual Studio 2013 installed. VS2012 isn't going to help you up with this. Here is the source and citation:
To create a team project or manage process templates on an on-premises TFS, you must connect using the same version level of Visual Studio or Team Explorer. That is, to create a team project on TFS 2013, you must connect from Team Explorer 2013.

Visual Studio needs to make non-functional changes to this project to open in Visual Studio 2013

I opened a C# project that was created in VS 2010 SP, with VS 2013. A one-way conversion window appeared where I proceeded with the conversion.
Following warning message appeared
"Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior."
when I run the application it gives the following error
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
If I run the same app in VS 2010 it works fine.In VS 2013 upgraded the MVC3 to MVC 4 using these steps
http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806
This solution worked for me, but depends on the type of security utilised by your application. I required Windows Authentication to be used as the application was running on our local intranet.
Anyway, my problem lay with the default IIS Express settings for running the app. These can be found in your default My Documents folder for the IISExpress\config folder and modify the applicationhost.config settings to your liking.

Could not set Use Local IIS URL Web Server for SharePoint Web Server project in Visual Studio 2010

I have a custom SharePoint ASP.NET Web Service project.
I've setup it to debug as described in http://www.sharepoint-tips.com/2007/08/web-services-on-sharepoint-making-f5.html
it used to work as long as I was working with Visual Studio 2005.
but now I want to setup Visual Studio 2010 environment,
and I'm stuck trying to set 'Use Local IIS Web server' setting in VS, the error says: "The local IIS URL ... specified for web project ... has not been configured."
Tried in both: Windows2003 with MOSS 2007 and Windows 2008 with SharePoint server 2010. All the same.
What I'm missing? thanks in advance.
For Visual Studio 2010 and SharePoint 2010, F5 should work right out of the box. There's no need for any special tricks. Have a try without that outdated blog posting.

Setting up Visual Studio with a cloud based SharePoint site

I have a SharePoint site on the cloud where I access it through a URL like this one;
https://exampleemeamicrosoftonlinecom-1.sharepoint.emea.microsoftonline.com
I can also edit the site with SharePoint Designer by pointing to the same URL.
I'm at the stage in the project where I want to do some specific things so I am going to use Visual Studio, but I don't know how to set up Visual Studio with a cloud based SharePoint site? When I go to add a SharePoint site I get the following error;
A SharePoint server is not installed on this computer. A SharePoint server must be installed to work with SharePoint projects.
I also tried to add the URL as a server in Visual Studio but I get the error;
Server name "https://exampleemeamicrosoftonlinecom-1.sharepoint.emea.microsoftonline.com" could not be found. Make sure the server name is correct.
I have SharePoint Designer working with the SharePoint site, why won't Visual Studio work?
Visual Studio 2010 does not support remote development.

Resources