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