skip to Main Content

I am a VS2022 user. I updated it to version 17.5.0. Every time I try to view in the browser, the iisexpresstray (IIS Express) appears. But when you pass the mouse disappears. An error appears in Event Viewer. IIS Express is still working.

Event Viewer


IIS Express tray icon disappears

I have "Reset this PC" three times and reinstalled Win11 and visual studio each time. I also tested on a virtual machine, Win11. Same error.
[Windows 11 – 12400 – 16gb – M2 TB]

Also test on my Thinkpad X1 Win10 VS2022 updated to 17.5.0 works fine!

IIS Express tray icon is very useful when testing multiple projects. Lets you know the port used.
Any idea ?. Thanks a lot.-

3

Answers


  1. This answer summarizes information from comments and outside sources, for preservation.

    This appears to be a bug introduced in Visual Studio 2022 release 17.5.

    I discovered that the 32-bit version of IIS Express Tray does not suffer from the same crash. Therefore, as a workaround, you can manually launch the 32-bit version of IISExpressTray.exe, typically under "C:Program Files (x86)IIS Express". IISExpressTray.exe will automatically recognize running IIS Express web processes regardless of their bitness. You don’t need to switch to 32-bit web processes for this workaround.

    The bug has been reported to Microsoft by another user here: https://developercommunity.visualstudio.com/t/iisexpress-crashes-in-ntdlldll/10290067

    The poster of the bug report looked at a crash dump and discovered that the crash happened while processing telemetry data. Then they confirmed that deactivating participation in the Visual Studio Experience Improvement Program would work around the bug entirely.

    To deactivate participation in the Visual Studio Experience Improvement Program: Open Visual Studio 2022. Go to Help -> Privacy -> Privacy Options.... Then, near the bottom of the dialog, select "No, I would not like to participate". Please consider rejoining the program once the bug is fixed by Microsoft.

    At the time of this writing the bug has been triaged but not yet resolved.


    Update: Microsoft indicates that this issue was resolved in Release 17.5.4 (April 12 2023) (https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17.5.4)

    Login or Signup to reply.
  2. Until the bug is fixed, you can uninstall IIS Express, download from https://www.microsoft.com/en-us/download/details.aspx?id=48264 and install. I need to do this after each VS 2022 updates.

    Login or Signup to reply.
  3. This problem started for me when I updated Microsoft.AspNet.WebApi, Microsoft.AspNet.WebApi.Client, Microsoft.AspNet.WebApi.Core, Microsoft.AspNet.WebApi.WebHost, From Version 5.2.6 to version 5.2.9.

    The VS Update 17.5.4 did not resolve. When I rolled back the Microsoft.AspNet.WebApi versions to 5.2.6 it resolved.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search