question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade to ids 2.5 version and automapper 8.1.1 crash

See original GitHub issue

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<!0,!1>>)’. 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<Client> clients)

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<T>() AutoMapper.Configuration.MapperConfigurationExpression.AddProfile<TProfile>() in MapperConfigurationExpression.cs AutoMapper.MapperConfiguration.Build(Action<IMapperConfigurationExpression> configure) in MapperConfiguration.cs AutoMapper.MapperConfiguration…ctor(Action<IMapperConfigurationExpression> configure) in MapperConfiguration.cs Skoruba.IdentityServer4.Admin.BusinessLogic.Mappers.ClientMappers…cctor()

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
StasPerekrestovcommented, Jul 25, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

8.1.1 Upgrade Guide
1 Upgrade Guide. The purpose of this release is to allow you to upgrade to 9.0 gradually.
Read more >
c# - Error when installing Automapper 8.1.1 with package ...
I used the package manager in VS Code to install the latest version of automapper. I was on 8.0.1 and now I want...
Read more >
Search Results - CVE
It is recommended to upgrade to a version that is not affected. ... This issue affects the i18n module of Apache Sling up...
Read more >
AutoMapper - Not working with generics after upgrade from ...
I have possibly and odd AutoMapper setup that was working before we updated to version 9. We grab data from a database, wrap...
Read more >
AutoMapper 12.0.1
What is AutoMapper? AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found