Aspnetcore: Suddenly ASP.NET Core Identity not working for any of my applications in my machine.

Created on 24 Mar 2020  路  11Comments  路  Source: dotnet/aspnetcore

Strangely! Suddenly ASP.NET Core Identity is not working for any of my applications in my machine. Whenever I am trying to login with right credential, SignInResult is Succeed but not setting Identity Cookie to the browser and showing the following error in browser:

It looks like the webpage at https://localhost:44330/Identity/Account/Login might be having issues, or it may have moved permanently to a new web address.
ERR_HTTP2_PROTOCOL_ERROR

ASP.NET Core Version: 3.1.2
Visual Studio Version: 16.4.5

Note: This is neither a bug nor a feature request. I just need a help to guess the problem.

Needs area-servers

Most helpful comment

This is most likely to be affected by the OS version

Okay! @Tratcher guessed it correctly! The problem actually lies in the Operating System. I was using the latest preview of Windows 10 which is Windows 10 2004 (Os build: 19587.1000).

Now I have downgraded to Windows 10 1909 (Os build: 18363.720) and everything is working fine.
So anyone of you can report this fatal issue to the Windows 10 Team.

Before finishing! Thank you so much everybody participated here and showing your heartfelt interest to identify the problem. You people are doing fantastic job! Wish you all the very best. Stay safe and sound during this pandemic time.

Regards
TanvirArjel

All 11 comments

Hi. While we do our best to look through all the issues filed here, we are not a general-purpose forum. To get a faster response we suggest posting your questions to StackOverflow using the asp.net-core-mvc tag.

@blowdart, @anurse does this error seems familiar? Any hints?

No, nor is it identity. We don't do anything to make a protocol error occur. The only thing I can think of is SameSite, but that would not cause a protocol error in the slightest, and would only happen with OIDC logins.

Yep, this looks like an HTTP/2 protocol failure of some kind. It's not related to Identity as far as I can tell. cc @Tratcher @halter73

@TanvirArjel can you provide a runnable sample to reproduce the problem? If not, can you share more details about the environment you're running in? What OS are you on? What browser are you using? How are you hosting the application (in IIS or stand-alone)?

In addition to what @anurse asked for, debug level logs might also be helpful.

@anurse Its happening for all applications so you can create a brand new ASP.NET Core 3.1 application with Visual Studio 2019 16.4.5 with Individual Account Authentication selected! Now register and log into the site.

Here is the necessary info:
Visual Studio Version: 2019 (16.5.1)
ASP.NET Core Version: 3.1.2
Os: Windows 10
Server: IIS Express
Browser: Latest Chromium Microsoft Edge (80.0.361.69),Latest Google Chrome

ASP.NET Core shouldn't be able to cause any HTTP/2 protocol violations on IIS/Express, that's all managed at a much deeper layer in the OS. This is most likely to be affected by the OS version. What specific windows 10 version?

I wasn't able to repro this with:
Win10 2004 (19041.153)
ASP.NET Core Version 3.1.3 (shouldn't affect this)
VS 16.5.1 (shouldn't affect this)

Kestrel also works fine, but it uses a very different HTTP stack.

What about the new cookie policy? Have you enabled any of the new advanced settings?

@Tratcher My OS version is: Windows 10 2004 (19587.1000)! Same problem is also happening in other PC's too.

What about the new cookie policy? Have you enabled any of the new advanced settings?

No didn't.

This is most likely to be affected by the OS version

Okay! @Tratcher guessed it correctly! The problem actually lies in the Operating System. I was using the latest preview of Windows 10 which is Windows 10 2004 (Os build: 19587.1000).

Now I have downgraded to Windows 10 1909 (Os build: 18363.720) and everything is working fine.
So anyone of you can report this fatal issue to the Windows 10 Team.

Before finishing! Thank you so much everybody participated here and showing your heartfelt interest to identify the problem. You people are doing fantastic job! Wish you all the very best. Stay safe and sound during this pandemic time.

Regards
TanvirArjel

Thanks, I've passed that along to the Windows team.

Confirmed, they were able to repro this in 19587 but it's already fixed in 19595. Let us know if you see otherwise.

Was this page helpful?
0 / 5 - 0 ratings