KeyCredentialManager.RequestCreateAsync() crashin windows 11

Basudeb Gupta 6 Reputation points
2022-07-11T10:22:16.013+00:00

In UWP KeyCredentialManager.RequestCreateAsync() function is crashing with exception Key not valid in Windows 11. It has been working in Windows 10 and still works.

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Basudeb Gupta 6 Reputation points
    2022-07-12T02:48:35.25+00:00

    Thanks for your feedback. The problem got resolved but there is a story.
    I thought there could be an issue with update. So I installed the latest xxxxx68 update. As a result my task bar vanished. Nothing could be done to bring it back, I restarted many times.
    Then I tried logout and login. And this time I did not use PIN ( I have been using the PIN from the installation time). and used forgot PIN.
    I had to give a new PIN ( of course I used the same old PIN). and now when I signed out and signed in, presto, my task bar came back in all its glory.

    So, I tried debugging my UWP app again .Now, the function did not crash. It simply worked like a good boy it has been in Windows 10.

    There is a bug somewhere here, Microsoft. Well, it is yours not mine. Dont know it is a cause for glee or remorse.

    1 person found this answer helpful.

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.