Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency problem in caching #70

Closed
ahmedanis03 opened this issue Mar 9, 2016 · 1 comment
Closed

dependency problem in caching #70

ahmedanis03 opened this issue Mar 9, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@ahmedanis03
Copy link

using rc2 nightly build 20116
openiddict core project failed to build because of this line in OpenIddictExtensions

builder.Services.AddCaching();

what lead me to discover this error is when i tried to update my project database using dotnet ef
it gave me this error

dotnet : System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.MemoryCacheServicesExtensions' from assembly 'Microsoft.Extensions.Caching.Memory, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
At line:1 char:1
+ dotnet ef database update
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (System.TypeLoad...9793829ddae60'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

   at Microsoft.AspNetCore.Builder.OpenIddictExtensions.AddOpenIddictCore[TApplication](IdentityBuilder builder, Action`1 configuration)
   at Microsoft.AspNetCore.Builder.OpenIddictExtensions.AddOpenIddict(IdentityBuilder builder)

   at WebPortal.Startup.ConfigureServices(IServiceCollection services) in C:\Users\Ahmed-PC\Development\RoseDevProject\RoseDev\src\WebPortal\Startup.cs:line 52

Could not load type 'Microsoft.Extensions.DependencyInjection.MemoryCacheServicesExtensions' from assembly 'Microsoft.Extensions.Caching.Memory, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

please can you update the project with the correct dependency
thanks a lot

@kevinchalet kevinchalet added the bug label Mar 9, 2016
@kevinchalet kevinchalet added this to the 1.0.0-alpha2 milestone Mar 9, 2016
@kevinchalet kevinchalet self-assigned this Mar 9, 2016
@kevinchalet
Copy link
Member

Thanks for reporting this bug 👏

Fixed: 576d42b.

FY, it was caused by a breaking change added yesterday in the caching block: aspnet/Caching@a6c044c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants