when i open the url http://localhost:9000/Configuration/Clients
and throw an unhandled exception
it is automapper 8.1.1 version problem
MissingMethodException: Method not found: 'AutoMapper.IMappingExpression2<!0,!1> AutoMapper.IMappingExpression2.ConstructUsing(System.Linq.Expressions.Expression1<System.Func2>)'.
Skoruba.IdentityServer4.Admin.BusinessLogic.Mappers.ClientMapperProfile..ctor()
TargetInvocationException: Exception has been thrown by the target of an invocation.
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, bool publicOnly, bool wrapExceptions, ref bool canBeCached, ref RuntimeMethodHandleInternal ctor)
TypeInitializationException: The type initializer for 'Skoruba.IdentityServer4.Admin.BusinessLogic.Mappers.ClientMappers' threw an exception.
Skoruba.IdentityServer4.Admin.BusinessLogic.Mappers.ClientMappers.ToModel(PagedList
TargetInvocationException: Exception has been thrown by the target of an invocation.
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, bool publicOnly, bool wrapExceptions, ref bool canBeCached, ref RuntimeMethodHandleInternal ctor)
System.RuntimeType.CreateInstanceSlow(bool publicOnly, bool wrapExceptions, bool skipCheckThis, bool fillCache)
System.Activator.CreateInstance
AutoMapper.Configuration.MapperConfigurationExpression.AddProfile
AutoMapper.MapperConfiguration.Build(Action
AutoMapper.MapperConfiguration..ctor(Action
Skoruba.IdentityServer4.Admin.BusinessLogic.Mappers.ClientMappers..cctor()
How did you solve this issue?
Thanks.
Thanks 馃憤馃徏
I suppose if you upgrade ids to 2.5.0 and Automapper to 8.1.1 (this version is in the dependencies here https://www.nuget.org/packages/IdentityServer4.EntityFramework.Storage/), it should resolve the issue
Even more, it's discussed here https://github.com/IdentityServer/IdentityServer4/issues/3227 and the issue is part of Release Notes https://github.com/IdentityServer/IdentityServer4/releases