question

JohnDillett-9318 avatar image
0 Votes"
JohnDillett-9318 asked JohnDillett-9318 answered

Visual Studio 2019 hangs when trying to edit a webform

I recently updated visual studio to 2019
Currently VS is version 16.11.2
Development environment is visual basic project
Target .Net 4.7.2

When I try to edit the markup for a web form visual studio freezes
In task manager I can see highish cpu on VS process
within that Microsoft.VisualStudio.Web.Host.Exe is taking most of the cpu
with PerfWatson2.exe varying cpu

I have tried a repair of visual studio
Havent tried a full re-install


vs-generaldotnet-visual-basic
· 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.

Hi, @JohnDillett-9318
I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·
JohnDillett-9318 avatar image
0 Votes"
JohnDillett-9318 answered PengGe-MSFT commented

Hi @PengGe-MSFT ,

More info on this

This is a legacy application that has been in development for some time (hence using web forms)
It is big with lots of web forms
Opening web forms has been very slow for some time in vs 2019. Usually around 30 seconds from clicking to editing allowed
We dont want to update/change unless we absolutely need to.


I tested this a bit more. See below for some of the steps. Think these prove that its vs version and not the application/setup

  • I clicked a web form on the machne with the issue and left it for an extended period of time. It eventually allowed me to edit but it took around 15 minutes before it allowed me to do that. I havent waited for this time before


  • I opened the application on an older copy of vs2019 that I had on the build server (16.7.5) and it works as expected (30 secs)

  • If I create a new project on the machine with the issue then I can edit a web form quickly






· 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.

Hi, @JohnDillett-9318
Hi, I updated my answer, please check it.

0 Votes 0 ·
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT edited

Hi, @JohnDillett-9318

Welcome to Microsoft Q&A!

What is the type of your project? You can try to convert your project into a Web Application project.


Update:
This is a performance related issue, I suggest you can start a new thread and report this issue to VS Product Team in our Developer Community with some reproduced or detailed information. if you do report this issue, please share the link here, other forum members who are interested or meet the same or similar issue can go to vote for this thread.

Sincerely,
Peng

If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


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.

JohnDillett-9318 avatar image
0 Votes"
JohnDillett-9318 answered

Created link to Visual studio team

1520695


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.