question

som avatar image
0 Votes"
som asked som answered

.Net Core 3.1.1 breaking azure web app

Moved my webapp to .NET core 3.1.101 sdk added the extension in web app but still getting issue. every thing was ok with .NET 3.1.100 sdk and working fine locally with updated sdk

AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.Extensions.Options.IPostConfigureOptions`1[Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions] Lifetime: Singleton ImplementationType: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectPostConfigureOptions': Could not load file or assembly 'Microsoft.AspNetCore.DataProtection.Abstractions, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.) (Error while validating the service descriptor 'ServiceType: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler Lifetime: Transient ImplementationType: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler': Could not load file or assembly 'Microsoft.AspNetCore.DataProtection.Abstractions, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.) (Error while validating the service descriptor 'ServiceType: IdentityModel.AspNetCore.AccessTokenManagement.IAccessTokenManagementService Lifetime: Transient ImplementationType: IdentityModel.AspNetCore.AccessTokenManagement.AccessTokenManagementService': Could not load file or assembly 'Microsoft.AspNetCore.DataProtection.Abstractions, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.) (Error while validating the service descriptor 'ServiceType: IdentityModel.AspNetCore.AccessTokenManagement.ITokenEndpointService Lifetime: Transient ImplementationType: IdentityModel.AspNetCore.AccessTokenManagement.TokenEndpointService': Could not load file or assembly 'Microsoft.AspNetCore.DataProtection.Abstractions, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.) (Error while validating the service descriptor 'ServiceType: IdentityModel.AspNetCore.AccessTokenManagement.ClientAccessTokenHandler Lifetime: Transient ImplementationType: IdentityModel.AspNetCore.AccessTokenManagement.ClientAccessTokenHandler': Could not load file or assembly 'Microsoft.AspNetCore.DataProtection.Abstractions, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.)

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ answered

You should read this: https://github.com/aspnet/Announcements/issues/401

Solution: reference package Microsoft.AspNetCore.DataProtection.Abstractions directly in your project.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

som avatar image
0 Votes"
som answered

Thanks. but i think this is not scenario based issue in general will affect all the the apps and running x86. this should have been tested thoroughly before release.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.