FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0

0

After deploying to Microsoft Azure Web Apps, I'm getting the following error when trying to load my live website:

An error occurred while starting the application. FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

AutoAPR.Web.Startup.ConfigureServices(IServiceCollection services)

FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral,

PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) AutoAPR.Web.Startup.ConfigureServices(IServiceCollection services) Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services) Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices() Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize() Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

Since last publishing, I don't recall making any package changes that might have caused this bug. Just some minor content updates. Any ideas how to solve?

Here are the raw exception details:

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

File name: 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'

at AutoAPR.Web.Startup.ConfigureServices(IServiceCollection services)

--- End of stack trace from previous location where exception was thrown ---

at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)

at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()

at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()

--- End of stack trace from previous location where exception was thrown ---

at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

c#
azure
asp.net-core
azure-web-sites
asked on Stack Overflow Jan 11, 2019 by Wellspring

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0