Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dile Ram 26 posts 56 karma points
    Jun 08, 2016 @ 10:04
    Dile Ram
    0

    when I updating the AutoMapper dll, Result is errors.

    I have added CRM Stuff in umbraco project that needs latest AutoMapper(v4.2.1.0) dll. When I updating the AutoMapper dll in bin folder, Result is errors. Current Version AutoMapper is : v3.0.0.0 Current Umbraco Version is : 7.4.3

    Errors :

    Server Error in '/' Application.

    Could not load all types from "businesslogic, Version=1.0.5948.18144, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Reflection.ReflectionTypeLoadException: Could not load all types from "businesslogic, Version=1.0.5948.18144, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ReflectionTypeLoadException: Could not load all types from "businesslogic, Version=1.0.5948.18144, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ] Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +722 Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable1 assemblies, Boolean onlyConcreteClasses, Func2 additionalFilter) +678 Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable1 assemblies, Boolean onlyConcreteClasses) +176 Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable1 assemblies) +84 Umbraco.Core.<>c_DisplayClass3d1.<ResolveTypes>b__3c() +130 Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func1 finder) +70 Umbraco.Core.PluginManager.ResolveTypes(Func1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +3669 Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult, IEnumerable1 specificAssemblies) +229 Umbraco.Core.PluginManager.ResolveApplicationStartupHandlers() +48 Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +102 Umbraco.Core.CoreBootManager.Initialize() +1073 Umbraco.Web.WebBootManager.Initialize() +128 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +235 Umbraco.Core.UmbracoApplicationBase.ApplicationStart(Object sender, EventArgs e) +62

    [HttpException (0x80004005): Could not load all types from "businesslogic, Version=1.0.5948.18144, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9916673 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

    [HttpException (0x80004005): Could not load all types from "businesslogic, Version=1.0.5948.18144, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209

  • Tom 713 posts 954 karma points
    Apr 19, 2017 @ 01:04
    Tom
    0

    Hi just wondering if you found a solution to this? I've tried binding redirects like so:

    and probing paths and neither seem to work:

      <dependentAssembly>
        <assemblyIdentity name="AutoMapper" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
        <bindingRedirect oldVersion="3.0.0.1-4.1.1.0" newVersion="4.1.1.0" />
        <bindingRedirect oldVersion="4.1.1.1-6.0.2.0" newVersion="6.0.2.0" />
        <codeBase version="6.0.2.0" href="bin\AutoMapper\v6\AutoMapper.dll" />
        <codeBase version="4.1.1.0" href="bin\AutoMapper\v4\AutoMapper.dll" />
        <codeBase version="3.0.0.0" href="bin\AutoMapper\v3\AutoMapper.dll" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
        <bindingRedirect oldVersion="3.0.0.1-4.1.1.0" newVersion="4.1.1.0" />
        <bindingRedirect oldVersion="4.1.1.1-6.0.2.0" newVersion="6.0.2.0" />
        <codeBase version="6.0.2.0" href="bin\AutoMapper\v6\AutoMapper.dll" />
        <codeBase version="4.1.1.0" href="bin\AutoMapper\v4\AutoMapper.dll" />
        <codeBase version="3.0.0.0" href="bin\AutoMapper\v3\AutoMapper.dll" />
      </dependentAssembly>
    
  • Bobi 346 posts 950 karma points
    May 04, 2018 @ 17:55
Please Sign in or register to post replies

Write your reply to:

Draft