After successfully upgrading our production environment from 8.1.5 to 9.1 we updated the IT Shop, but after that completed we received the following .Net error.
Server Error in '/IdentityManager' Application.
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: D:\wwwroot\...\IdentityManager\web.config Line: 69
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
We resolved it by checking the product version of the System.Web.MVC.dll in wwwroot/IdentotyManager/bin.
Then in the Web.Config I changed
<compilation debug="false" defaultLanguage="c#" targetFramework="4.8">
<add assembly="System.Web.Mvc, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Web.Mvc, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-188.8.131.52" newVersion="184.108.40.206" />
<bindingRedirect oldVersion="0.0.0.0-220.127.116.11" newVersion="18.104.22.168" />
Reloaded the URL and all is okay. I guess the latest version of System.Web.MVC is newer in the latest .Net Framework 4.8 than what you have set in the upgrade process.