Skip to content

Stackoverflow on upgrade of AutoMapper.Extensions.Microsoft.DependencyInjection #153

@penfold

Description

@penfold

TLDR See whole chain of comments. It looks to be caused by AutoMapper.Extensions.Microsoft.DependencyInjection.

I'm getting a SO in Visual Studio when my WebApp starts up. I have extensive usage of Automapper, but I get nothing other that a SO. The call stack is:

System.Private.CoreLib.dll!System.RuntimeTypeHandle.GetGenericTypeDefinition(System.RuntimeType type)	Unknown
System.Private.CoreLib.dll!System.RuntimeType.GetGenericTypeDefinition()	Unknown

AutoMapper.Collection.dll!AutoMapper.Collection.TypeHelper.GetElementTypes(System.Type enumerableType, System.Collections.IEnumerable enumerable, AutoMapper.Collection.ElemntTypeFlags flags) Unknown
AutoMapper.Collection.dll!AutoMapper.Collection.TypeHelper.GetElementType(System.Type enumerableType) Unknown
AutoMapper.Collection.dll!AutoMapper.Mappers.EquivalentExpressionAddRemoveCollectionMapper.MapExpression(AutoMapper.IConfigurationProvider configurationProvider, AutoMapper.ProfileMap profileMap, AutoMapper.IMemberMap memberMap, System.Linq.Expressions.Expression sourceExpression, System.Linq.Expressions.Expression destExpression, System.Linq.Expressions.Expression contextExpression) Unknown
AutoMapper.Collection.dll!AutoMapper.Mappers.EquivalentExpressionAddRemoveCollectionMapper.MapExpression(AutoMapper.IConfigurationProvider configurationProvider, AutoMapper.ProfileMap profileMap, AutoMapper.IMemberMap memberMap, System.Linq.Expressions.Expression sourceExpression, System.Linq.Expressions.Expression destExpression, System.Linq.Expressions.Expression contextExpression) Unknown
.
.
. AutoMapper.Collection.dll!AutoMapper.Mappers.EquivalentExpressionAddRemoveCollectionMapper.MapExpression(AutoMapper.IConfigurationProvider configurationProvider, AutoMapper.ProfileMap profileMap, AutoMapper.IMemberMap memberMap, System.Linq.Expressions.Expression sourceExpression, System.Linq.Expressions.Expression destExpression, System.Linq.Expressions.Expression contextExpression) Unknown

Then SO.

Are you able to give me an idea of how I could start to debug this? (There's not much to go on.)

Thanks,
Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions