Skip to content

'System.TypeInitializationException' exception when creating a mapper #61

@fleed

Description

@fleed

When creating a new mapper using Mapper.CreateNew() I get the following exception:

An exception of type 'System.TypeInitializationException' occurred in AgileObjects.AgileMapper.dll but was not handled in user code: 'The type initializer for 'AgileObjects.AgileMapper.TypeConversion.ToNumericConverter`1' threw an exception.'
 Inner exceptions found, see $exception in variables window for more details.
 Innermost exception 	 System.Reflection.AmbiguousMatchException : Multiple methods found with 2 parameter(s)
   at AgileObjects.NetStandardPolyfills.MethodExtensionsPolyfill.WithParameterCount(IEnumerable`1 methods, Int32 parameterCount)
   at AgileObjects.AgileMapper.TypeConversion.TryParseConverter`1..ctor()
   at AgileObjects.AgileMapper.TypeConversion.ToNumericConverter`1..cctor()

I'm using it in a unit test project (xunit) in a netcoreapp2.1 project.

Metadata

Metadata

Assignees

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