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.

Method not found: 'Void AutoMapper.IMappingExpression

See original GitHub issue

After last update i get this error:

  • Abp package version:4.0.2
  • Base framework: .Net Framework.

Stack:

[MissingMethodException: Method not found: 'Void AutoMapper.IMappingExpression`2.ConvertUsing(System.Func`2<!0,!1>)'.]
   Abp.AutoMapper.AbpAutoMapperModule.CreateCoreMappings(IMapperConfigurationExpression configuration) +0
   Abp.AutoMapper.AbpAutoMapperModule.<CreateMappings>b__6_0(IMapperConfigurationExpression configuration) +138
   AutoMapper.MapperConfiguration.Build(Action`1 configure) +38
   AutoMapper.Mapper.Initialize(Action`1 config) +26
   Abp.AutoMapper.AbpAutoMapperModule.CreateMappings() +164
   Abp.AutoMapper.AbpAutoMapperModule.PostInitialize() +5
   Abp.Modules.<>c.<StartModules>b__15_2(AbpModuleInfo module) +13
   System.Collections.Generic.List`1.ForEach(Action`1 action) +85
   Abp.Modules.AbpModuleManager.StartModules() +281
   Abp.AbpBootstrapper.Initialize() +267
   Abp.Web.AbpWebApplication`1.Application_Start(Object sender, EventArgs e) +53
   GDPRun.Web.MvcApplication.Application_Start(Object sender, EventArgs e) in D:\WorkSpaces\App.Web\Global.asax.cs:16

[HttpException (0x80004005): Method not found: 'Void AutoMapper.IMappingExpression`2.ConvertUsing(System.Func`2<!0,!1>)'.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

[HttpException (0x80004005): Method not found: 'Void AutoMapper.IMappingExpression`2.ConvertUsing(System.Func`2<!0,!1>)'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +657
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188

Issue Analytics

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

github_iconTop GitHub Comments

12reactions
malimingcommented, Nov 20, 2018

@totpero AutoMapper 8.0 has broken changes. Downgrading to 7.0.1 will solve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automapper Aftermap "method not found" exception
My AutoMapper mapping configuration looks as following: CreateMap<FooDTO, Foo>() .AfterMap((src, dest, ctx) => ctx.Mapper.Map(src.SomeFieldY ...
Read more >
AutoMapper Error on V 5.3.2 #3419 - ABP Commercial
MissingMethodException : Method not found: 'Void AutoMapper.IMemberConfigurationExpression`3.MapFrom(System.Linq.Expressions.
Read more >
Demo Android App not working #6041 - Support - ASP.NET Zero
Demo Android App not working #6041 ... MissingMethodException: Method not found: void AutoMapper.IMappingExpression 2.ConvertUsing(System.
Read more >
8.0 Upgrade Guide
To migrate, replace all usages of ProjectUsing with ConvertUsing . The ConvertUsing expression-based method will be used for both in-memory mapping and LINQ ......
Read more >
AutoMapper Documentation
A convention-based object-object mapper. AutoMapper uses a fluent configuration API to define an object-object mapping strategy.
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