Can't open ASP.Net SOAP Service in VS2022

Terry Wight 1 Reputation point
2022-07-27T16:40:44.713+00:00

I need to work on an old VS2003 Solution with a SOAP ASP.Net Web Service and its class library. When I try to open the solution with VS2022 it will not load the projects. The errors are as follows:

D:\Git\API1.0\SOAP.Order_WS\SOAP.Order_WS.vbproj : error : The imported project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Users\TWight\AppData\Local\Microsoft\VisualStudio\17.0_20148a73\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. D:\Git\API1.0\SOAP.Order_WS\SOAP.Order_WS.vbproj

D:\GIt\API1.0\OrderService.APIRedirects\APIRedirects.vbproj : error : The imported project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Users\TWight\AppData\Local\Microsoft\VisualStudio\17.0_20148a73\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. D:\Git\API1.0\OrderService.APIRedirects\APIRedirects.vbproj

I've looked for information on how to load the MSBuild dependencies, but have had no luck.

I've looked for articles on how to open VS2003 solutions with VS2022, and came up empty.

Is there a way to get these projects to load so I can make changes and recompile and deploy or will I have to try to install an old VS2003 or 2008 version?

TIA

Developer technologies Visual Studio Setup
Developer technologies VB
Developer technologies ASP.NET Other
Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Terry Wight 1 Reputation point
    2022-07-27T18:26:44.413+00:00

    I was able to solve this problem by installing Visual Studio 2015 Enterprise with Update 3

    This seems to have provided the necessary dependency, although the file listed in the error message ("C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets") still does not exist on my system. Very strange.

    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.