question

TerryWight-6015 avatar image
0 Votes"
TerryWight-6015 asked TerryWight-6015 edited

Can't open ASP.Net SOAP Service in VS2022

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

dotnet-visual-basicdotnet-aspnet-generalvs-setupvs-msbuild
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm pretty sure a VS2003 project will not open in VS 2022. However, you can create an ASMX project in VS 2022 and copy the source code. Make sure you have the ASP.NET and Web development workload installed.

225369-capture.png


0 Votes 0 ·
capture.png (86.4 KiB)

1 Answer

TerryWight-6015 avatar image
0 Votes"
TerryWight-6015 answered TerryWight-6015 edited

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.