2

I just installed Visual Studio 2019 Enterprise and Telerik Web UI components.

When I opening a aspx file, page is not loading. After I switching to another page or another app and switch back to that file code is displaying in that time. This is only happening to .aspx files. While aspx.vb or aspx.cs pages are loaded correctly.

This is how it looks;

vs2019error

I repaired Visual Studio but problem contiunes. What may causing this to happen? I couldn't find a solution by myself or online.

I observed that it happens on my second monitor, when I switch the VS to my laptop's main screen it is not happening.

settings

Which options should I close for solve this?

Jack J Jun
  • 5,633
  • 1
  • 9
  • 27
AlpUygur
  • 67
  • 6
  • I've been experiencing weird glitches in VS2019's support for `.aspx` files lately too - but never anything as bad as this. Do you have any third-party extensions installed? Have you tried enabling/disabling VS's hardware-accelerated UI? – Dai Oct 22 '20 at 05:52
  • Also, I recommend creating a new VM and doing a stock install of VS in there (and *don't* sign-in with a Personalization account, activate it with a product-key instead) so you have a "known good" install of VS you can use whenever it breaks on your desktop. – Dai Oct 22 '20 at 05:53
  • Does this happen even on new project with ASPX files? – Martheen Oct 22 '20 at 05:53
  • @Dai I look at your recommend and find the cause. Could you check my question again I edited it. – AlpUygur Oct 22 '20 at 06:57
  • @Martheen Yes, It happens – AlpUygur Oct 22 '20 at 06:58
  • 3
    Disabling both rich client and graphics hardware usually works for your case – Martheen Oct 22 '20 at 07:00
  • Sounds like you have dodgy NVIDIA Optimus drivers fighting with your laptop's CPU's Intel GPU? – Dai Oct 22 '20 at 07:43

1 Answers1

0

Unchecking "Optimize rendering for screens with different pixel densities (requires restart)" fixed it for me.