Identityserver4: .NET 5 Beta 8 - AddDeveloperSigningCredential persisted or not throws Json Error that is translated to Assert causing tests to fail

Created on 3 Sep 2020  路  5Comments  路  Source: IdentityServer/IdentityServer4

Issue / Steps to reproduce the problem

  1. Use the sample, update to .NET 5 Beta 8 with latest VS.NET 2019.
  2. Make sure it's using AddDeveloperSigningCredential (doesn't matter if you choose to persist or not)
  3. Run a unit tests that causes AddDeveloperSigningCredential to be hit.
System.ArgumentException: 'IDX10805: Error deserializing json: 'System.String' into 'System.RuntimeType'.'

DebugAssertException: Method Debug.Assert failed with '
', and was translated to Microsoft.VisualStudio.TestPlatform.TestHost.DebugAssertException to avoid terminating the process hosting the test.

This also throws when debugging but doesn't terminate the TestHost.

One presumes it's using System.Text.Json and something has changed, but that is just a guess.

bug report

Most helpful comment

@javiercn does this affect you? @blowdart

All 5 comments

@javiercn does this affect you? @blowdart

Any chance of a work around? When is 5.0 beta scheduled? This specifically blocks tests from running right now and .net 5 RC is go live.

@leastprivilege I don't think so, we have our own logic to deal with the dev secret

can't repro with RC2

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings