Ok, I added to AutoMapper.exclude
^LinFu\.DynamicProxy\.ProxyDummy$
Then I get the error (for my demo)
AutoMapper.AutoMapperMappingException: Trying to map Blah to IBling.
Using mapping configuration for AutoMapper.Demo.Common.Blah to
AutoMapper.Demo.Common.IBling
Exception of type 'AutoMapper.AutoMapperMappingException' was thrown.
---> AutoMapper.AutoMapperMappingException: Trying to map Int32 to
Int32.
Using mapping configuration for AutoMapper.Demo.Common.Blah to
AutoMapper.Demo.Common.IBling
Destination property: Id
Exception of type 'AutoMapper.AutoMapperMappingException' was thrown.
---> System.Reflection.TargetInvocationException: Exception has been
thrown by the target of an invocation. --->
System.MethodAccessException: LinFu.DynamicProxy.InvocationInfo..ctor
(System.Object, System.Reflection.MethodInfo,
System.Diagnostics.StackTrace, System.Type[], System.Object[])
at IBlingProxy.set_Id(Int32 )
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes
methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object
[] arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj,
Object value, BindingFlags invokeAttr, Binder binder, Object[] index,
CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj,
Object value, Object[] index)
at AutoMapper.Internal.PropertyAccessor.SetValue(Object
destination, Object value)
at AutoMapper.Mappers.TypeMapMapper.Map(ResolutionContext context,
IMappingEngineRunner mapper)
--- End of inner exception stack trace ---
at AutoMapper.Mappers.TypeMapMapper.Map(ResolutionContext context,
IMappingEngineRunner mapper)
at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map
(ResolutionContext context)
--- End of inner exception stack trace ---
at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map
(ResolutionContext context)
at AutoMapper.MappingEngine.Map(Object source, Type sourceType,
Type destinationType)
at AutoMapper.MappingEngine.Map[TSource,TDestination](TSource
source)
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source)
at AutoMapper.Demo.BlahToBling.SetUpAndConvert() in C:\projects
\AutoMapper.Demo\AutoMapper.Demo\Program.cs:line 14
at AutoMapper.Demo.Program.Main(String[] args) in C:\projects
\AutoMapper.Demo\AutoMapper.Demo\Program.cs:line 32
Weird!! Not sure what's up there.