Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

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: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

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: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeAssembly.get_DefinedTypes() +96
   AutoMapper.Configuration.<>c.<AddProfilesCore>b__25_1(Assembly a) +17
   System.Linq.<SelectManyIterator>d__17`2.MoveNext() +262
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +281
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +90
   AutoMapper.Configuration.MapperConfigurationExpression.AddProfilesCore(IEnumerable`1 assembliesToScan) +310
   Encompass.Core.Extensions.EnumerationExtensions.ForEach(IEnumerable`1 enumerable, Action`1 action) in C:\agent\_work\1\s\Encompass.Core\Extensions\EnumerationExtensions.cs:23
   AutoMapper.MapperConfiguration.Build(Action`1 configure) +48
   AutoMapper.Mapper.Initialize(Action`1 config) +35
   Encompass.Framework.Framework3.WebCore.WebStartup.Execute() in C:\agent\_work\1\s\Encompass.Framework\Framework3\WebCore\WebStartup.cs:70

[HttpException (0x80004005): Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714


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