Could not load file or assembly 'System.Web.Http 4.0.0 after update from 2012 to 2013

前端 未结 28 1277
悲哀的现实
悲哀的现实 2020-11-28 01:09

I did the upgrade according to. http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

I get the er

28条回答
  •  心在旅途
    2020-11-28 01:52

    The proper solution to resolve this issue is by following the steps

    . Update Visual studio if you have older version to 15.5.4 (Optional)

    1. Remove all binding redirects from web.config

    2. Add this to the csproj file:

     
      true
      true
    
    
    1. Build.

    2. In the bin folder, there should be a (WebAppName).dll.config file.

    3. It should have redirects in it. Copy these to the web.config

    4. Remove the above snipped from the csproj file again

    5. It should work

    Detailed Blog

提交回复
热议问题