Visual Studio 2019 freezes when instantiating SOAP Webreference
Please try the following steps:
1) disable any third party vs installed extensions under Extensions-->Manage
Extensions to check whether there is an extension causing that.
2) reset all vs settings under Tools
-->Import and Export Settings
-->Reset all VS settings
3) clean nuget caches first
then run update-package -reinstall
under Tools
-->Nuget Package Manager
-->Package Manager Console
4) close VS, delete .vs
hidden folder under the solution folder, bin
and obj
folder
5) try to use another port under Project Porperties-->Web-->Porject Url https://localhost:<prot>/
like https://localhost:44307/
6) Or try run devenv /safemode
on Developer Command Prompt for VS2019 to start a pure VS and then debug your project to test again.
7) If it does not work, you could create a new winform project in VS2019 and then migrate the old content into the new one to test whether the issue still persists. And if it succeeded, it is a better solution to avoid this issue.
If the error also happens on the new one, please repair vs or update vs.
Besides, if these do not work, please share a small sample with us so that it will help us troubleshoot your issue more quickly.