Last post Mar 13, 2019 02:17 PM by reza-2017
Mar 11, 2019 04:28 PM|reza-2017|LINK
Hi , i have a problem when publishing website
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-22.214.171.124" newVersion="126.96.36.199"/>
Severity Code Description Project File Line Suppression State
Error Could not load file or assembly 'System.Web.Mvc, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Tarh-Online D:\Develop\ASP\Tarh-Online\Tarh-Online\SGEN
Mar 11, 2019 07:38 PM|bruce (sqlwork.com)|LINK
while your web.config, say to load version 184.108.40.206 no matter what the manifest says, do you have matching redirects for the dependences & is .net framework 4.5+ installed
Mar 12, 2019 02:44 AM|Yuki Tao|LINK
Please make a backup before making changes.
I found a simplest solution,you could try to:
1.Open NuGet Package Manager in Visual studio for your project
2.Search for Microsoft.AspNet.Mvc
3.When found, change action to Uninstall and Uninstall it
4.Once done, install it again and try it now
Or,you could refer to this
A few things can cause this, when I have this issue I do these things:
1.) In Visual Studio go to Tools =>
Extensions and Updates. If there is an update to NuGet update it then close and reopen the project. It may be that the packages have changed and if you don't have the latest version the packages won't get automatically updated like they should.
2.) Delete your bin/obj directories. Cleaning the solution doesn't always completely clean and you may have an old assembly in one of these directories.
3.) In the Web.Config look at the binding redirects in the
runtime=>assemblyBinding section. The new version value should be the newer version.
4.) Look at each of the assemblies in each of the projects and find the one that is using the
wrong version. Remove the reference and re-add it.
Mar 12, 2019 01:08 PM|reza-2017|LINK
doesn't work !
Mar 13, 2019 02:01 AM|Yuki Tao|LINK
There are many reasons for this error.
I can only suggest what you can do.
Please refer to this link:
Some people think one of solutions is that you could try to add references to these assemblies and set Copy Local to True:
Hope my reply will helpful to you.
Mar 13, 2019 02:17 PM|reza-2017|LINK