Visual Studio 2019 freezes when instantiating SOAP Webreference

141 Views Asked by At

I am expierencing a strange problem with Visual Studio 2019. We ware using SOAP-webreferences in our projects. When I start a project in debug mode, the debugger freezes when the SOAP reference is instantiated. Waiting ~5 minutes helps but this problem strongly impaires the development. When I start the same App without the Visual Studio debugger, everything works fine. The bottom line is that I cannot use the debugger right now.

I already tried to set a breakpoint but nothing happens when the debugger freezes - even in the console.

1

There are 1 best solutions below

0
Mr Qian On

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.