Migrating my MVC 3 application to MVC 4

前端 未结 9 2088
难免孤独
难免孤独 2020-12-24 03:08

I really do not know what to do, I\'m following this article that shows how to migrate my MVC 3 application manually .

I followed all the steps but

9条回答
  •  独厮守ぢ
    2020-12-24 03:20

    Have you globally searched for System.Web.WebPages.Razor, Version=1.0.0.0 in your entire solution? Do you still reference System.Web.WebPages.Razor (Version 1.0.0.0)? Do you reference System.Web.WebPages.Razor Version 2.0.0.0?


    [Update] I finally ran into the same issue. It seems like one of the NuGet packages I installed and uninstalled didn't entirely remove the reference to System.Web.Razor it used. Cleaning the solution didn't help because the DLL wasn't used directly by the web application. I finally got it to work by manually deleting the entire bin directory ...

提交回复
热议问题