Visual Studio 2019 hangs when trying to edit a webform

John Dillett 96 Reputation points
2021-08-26T07:18:05.917+00:00

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,250 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,750 questions
{count} votes

Accepted answer
  1. John Dillett 96 Reputation points
    2021-08-27T11:18:11.29+00:00

    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

2 additional answers

Sort by: Most helpful
  1. PengGe-MSFT 3,366 Reputation points
    2021-08-27T09:39:42.79+00:00

    Hi, @John Dillett

    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

    0 comments No comments

  2. John Dillett 96 Reputation points
    2021-09-03T08:37:41.197+00:00

    Created link to Visual studio team

    1520695

    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.