openiddict-core: Error after upgrade to Asp.net core 1.0.0.
Hi there & thanks for your amazing work đ
I ran into an issue after upgrading asp.net core rc2 -> 1.0.0. yesterday:
When loading my dev-app, the line
services.AddOpenIddict<Core.Entities.User, DataAccess.ApoNextDbContext>).DisableHttpsRequirement();
causes
An exception of type âSystem.TypeLoadExceptionâ occurred in OpenIddict.dll but was not handled in user code
Additional information: Der Typ âMicrosoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensionsâ in der Assembly âMicrosoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60â konnte nicht geladen werden.
(translates as âType ⌠in assebly ⌠could not be loadedâ)
I am using Openiddict 1.0.0-alpha2-0331 . Everything was running fine with asp.net core RC2 & OpenIddict alpha 302.
Let me know if you need additional information!
Mo
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
FYI, the âOpenIddict for RTMâ packages are now on MyGet.org
@moraleslos change project.json to:
Iâd recommend using 1.0.0-alpha2-final. It was published yesterday on MyGet and will be pushed soon on NuGet.org.
For those who want to try the experimental âOpenIddict for RTMâ bits, you can download the corresponding packages here: https://ci.appveyor.com/project/openiddict/openiddict-core/build/1.0.0-alpha2-337/artifacts
In the next few days. Actually, I already have a working âOpenIddict for ASP.NET Core RTMâ prototype, but Iâd like to share it with a few testers before releasing it publicly.
Haha, thanks đ
The issue youâre seeing is unfortunately a known one, caused by class name changes in the logging stack (and in a few other places): https://github.com/aspnet/DependencyInjection/issues/411
This incompatibility will be fixed when migrating to the RTM bits. In the meantime, Iâd recommend using the ASP.NET Core RC2 packages đ