Blue screen: HTTP.sys error

Anonymous
2021-06-16T14:33:13+00:00

recently started getting blue screen error when running Visual Studio 2019 and IIS Express application

msinfo:

https://1drv.ms/u/s!AgLJxHDVN__BhSnnjqW37EXiiXZ8?e=uin5sb

minidumps:

https://1drv.ms/u/s!AgLJxHDVN__BhSjD62yp8R-oqm1X?e=hlhbWE

thanks

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

70 answers

Sort by: Most helpful
  1. Anonymous
    2021-06-28T20:44:46+00:00

    Started getting blue screen issue when running the VS2019 and IIS express apps.

    It appears that the issue is raised after I have installed both those packages.

    To control the installed MS Windows updates (delaying for a few months) I usually doing the manual Windows updates and have noticed that installation for both of those packages was failed a few times. The next day it went through un-noticed somehow.

    I have resolved the blue screen issue in the following way:

    1. Go to the "C:\Windows\WinSxS" folder.
    2. Locate the http.sys file in the sub-folder which having the version number 10.0.19041.985 in the long sub-folder’s name.
    3. Replace current http.sys file in the "C:\Windows\System32" folder with the older version 10.0.19041.985. If replacing will required permission from the TrustedInstaller then grant permission to the pc user having an admin rights. It could be accomplished in two steps: first, change the owner of the http.sys file and second, grant full control to the new file’s owner.

    So far, it holds water… 

    Microsoft, please resolve the issue ASAP. It’s getting annoying…

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-06-28T17:33:20+00:00

    Or not.  😣

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-06-21T14:19:31+00:00

    Thank you zacuke for posting this approach. I didn't want to trust your file but I was able to do a file search on my laptop and inside some update files there existed the "good" version which you highlighted above (build 985), and so I was able to extract that version, then edit permissions for the "bad" http.sys so that I could rename the file, and then copy the good file over top of it.  

    Unfortunately this did not resolve my issue, my first web project debugged fine but the 2nd project BSOD immediately. It's possible there is another version of http.sys that is being run by IIS express and that the one I replaced is not the one being used .

    Update 6/29/2021: When I tested this file replace solution, I had not restarted my machine yet. After that first BSOD, it has not happened since so that is now going on over a week I have not had the issue. So wanted to post that update that zacuke's approach DID actually resolve my issue, I just needed to restart the machine after the replace and rename of the HTTP.sys file.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2021-06-18T03:07:08+00:00

    So this started happening to me late last week.

    VS 2019 BSOD whilst debugging. Crashed on me 4 times on Friday afternoon alone.

    I ended up reinstalling Windows 10 yesterday afternoon. It made no difference.

    So I tried VS 2017 this morning, and now it's doing it as well. I started a memory diagnostic just before I found this thread.

    I have a feeling this is connected with the recent Windows updates.

    I also have been getting the http2 protocol error in dev tools, along with other js files refusing to load. Reloading the page fixes it sometimes, but it definitely feels like the behaviour is getting worse.

    I've given up trying to develop for now...

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2021-06-17T20:50:07+00:00

    I am also getting random BSODs when using IIS Express, but there is also another problem that occurs when the BSOD doesn't occur.

    When I create a new project in ASP.NET Core and run it from VS 2019 by pressing Ctrl-F5, there are two situations which occur randomly:

    • Sometimes the app launches correctly, but some http requests fail randomly (approx. 1 of 10 requests).
      Edge shows HTTP2_PROTOCOL_ERROR in Dev Tools, but when I look in the server log, the request reports http 200.
      When I run Fiddler which plugs between the browser and the IIS Express, all requests succeed so I suppose this must be something between the browser and IIS Express.
    • Sometimes I get BSOD right after IIS Express starts. It reports some problems in http.sys.

    When I ask Visual Studio to run the project as a console app, the issue doesn’t occur – everything works correctly.

    It happens on two different machines, one has .NET 6 Preview 4, the other one has only .NET 5.

    I am not sure when it started, but it seems like it can be related to update to VS 16.10.

    One of my customers was also reporting the same issue so I suspect it has nothing to do with hardware or drivers.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments