Replies: 2 comments 1 reply
-
A lot of code. But what's with the map from |
Beta Was this translation helpful? Give feedback.
1 reply
-
Try the MyGet build. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The error stated to happen after upgrade from 8.1.1 to 11.0.1
https://gist.github.com/lecamarade/99157bfc734b935438eace8eb2c1246b
The gist works with 8.1.1 but doesn't with 11.0.1
Source/destination types
Mapping configuration
Version: x.y.z
AutoMapper 11.01
Expected behavior
No exception
Actual behavior
---> System.NullReferenceException: Object reference not set to an instance of an object.
at AutoMapper.MapperConfiguration.CompileExecutionPlan(MapRequest mapRequest)
at AutoMapper.Internal.LockingConcurrentDictionary
2.<>c__DisplayClass1_1.<.ctor>b__1() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy
1.CreateValue()at System.Lazy
1.get_Value() at AutoMapper.Internal.LockingConcurrentDictionary
2.GetOrAdd(TKey& key)at AutoMapper.MapperConfiguration.GetExecutionPlan(MapRequest& mapRequest)
at AutoMapper.MapperConfiguration.AutoMapper.Internal.IGlobalConfiguration.GetExecutionPlan[TSource,TDestination](MapRequest& mapRequest)
at AutoMapper.Mapper.MapCore[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, MemberMap memberMap)
at AutoMapper.Mapper.AutoMapper.IInternalRuntimeMapper.Map[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, Type sourceType, Type destinationType, MemberMap memberMap)
at AutoMapper.ResolutionContext.MapInternal[TSource,TDestination](TSource source, TDestination destination, MemberMap memberMap)
at lambda_method1(Closure , User , UserPropertiesContainer , ResolutionContext )
--- End of inner exception stack trace ---
at lambda_method1(Closure , User , UserPropertiesContainer , ResolutionContext )
--- End of inner exception stack trace ---
at lambda_method1(Closure , User , UserPropertiesContainer , ResolutionContext )
Steps to reproduce
Run gist
Beta Was this translation helpful? Give feedback.
All reactions