Could not load file or assembly System.Web.Mvc or one of its dependencies

前端 未结 3 1436
无人及你
无人及你 2021-02-14 02:44

currently working on asp.net mvc5 (old mvc3 project). It builds just fine, but when I start the project but when I run the project I am facing the following error.



        
3条回答
  •  礼貌的吻别
    2021-02-14 03:37

    I'm not really sure if this will help. But I also had this message:

    Could not load file or assembly 'System.Web.Mvc (1)' or one of its dependencies ...


    I don't really know why but when I check out the bin folder of the web application, some of the DLL files have duplicates like "System.Web.Mvc(1).dll" and so on.

    What I did was, I deleted all the duplicate files (file names with '(1)' or '(2)' ... on it), then rebuild the web app then it worked again.

提交回复
热议问题