I\'m using PostSharp, and this was working fine. Recently, we upgraded some projects to the MVC version 5.2. Today, I loaded up an old project which was using version 4.0
This error is usually raised when some of the 3-rd party assemblies references older version of System.Web.Mvc. You have the binding redirect in your web.config, but you also need to tell PostSharp to use that configuration during build. You can do it by setting PostSharpHostConfigurationFile
build property to the path of your *.config file.
web.config