-
Notifications
You must be signed in to change notification settings - Fork 433
Open
Labels
Dependency MismatchTransitive dependency might be at play and create issues resulting in incorrect versions of a classTransitive dependency might be at play and create issues resulting in incorrect versions of a class
Description
Which version of Microsoft.IdentityModel are you using?
Note that to get help, you need to run the latest version.
8.1.2
Where is the issue?
- M.IM.JsonWebTokens
- M.IM.KeyVaultExtensions
- M.IM.Logging
- M.IM.ManagedKeyVaultSecurityKey
- M.IM.Protocols
- M.IM.Protocols.OpenIdConnect
- M.IM.Protocols.SignedHttpRequest
- M.IM.Protocols.WsFederation
- M.IM.TestExtensions
- M.IM.Tokens
- M.IM.Tokens.Saml
- M.IM.Validators
- M.IM.Xml
- S.IM.Tokens.Jwt
- Other (please describe)
After updating from 8.0.2 to 8.1.2 and when calling
services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
in ConfigureServices
in Startup.cs
we receive the following exception
Unable to load one or more of the requested types.
Could not load type 'ExceptionType' from assembly 'Microsoft.IdentityModel.Tokens, Version=8.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Could not load type 'Microsoft.IdentityModel.Tokens.InternalTokenValidationResult' from assembly 'Microsoft.IdentityModel.Tokens, Version=8.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Could not load type 'Microsoft.IdentityModel.Tokens.InternalTokenValidationResult' from assembly 'Microsoft.IdentityModel.Tokens, Version=8.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.<>c__DisplayClass12_1.<AddAutoMapperClasses>b__6(Assembly a)
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddAutoMapperClasses(IServiceCollection services, Action`2 configAction, IEnumerable`1 assembliesToScan, ServiceLifetime serviceLifetime)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddAutoMapper(IServiceCollection services, Assembly[] assemblies)
at MyService.Web.Web.Startup.ConfigureServices(IServiceCollection services) in C:\\Github\MyService\src\MyService.Web\Startup.cs:line 96
Metadata
Metadata
Assignees
Labels
Dependency MismatchTransitive dependency might be at play and create issues resulting in incorrect versions of a classTransitive dependency might be at play and create issues resulting in incorrect versions of a class