Follow the following steps,
-
Update Visual Studio to the latest version (it matters)
-
Remove all binding redirects from
web.config -
Add this to the
.csprojfile:<PropertyGroup> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> </PropertyGroup> -
Build the project
-
In the
binfolder, there should be a(WebAppName).dll.configfile -
It should have redirects in it, copy these to the
web.config -
Remove the above snipped from the
.csprojfile
It should work.

Join the conversation! Your thoughts help the community grow.