Could not load file or assembly 'System.Web.WebPages'

前端 未结 7 436
孤街浪徒
孤街浪徒 2020-12-20 11:45

I\'ve had this problem before, but then all i needed to do was to clean and rebuild the project. Now that doesnt seem to work anymore. When i start my Asp.Net MVC3 project d

相关标签:
7条回答
  • 2020-12-20 12:33

    I have fetch same problem for MVC5.

    At First Check your System.Web.WebPages assembly from Reference of your project.

    1. If not found, then add by select add reference from project Reference.
    2. If found, any the check version from Properties of that reference. Then check your project web.config file. May be this two versions are not matching.

    For me, I add a reference of version 2.0.0.0. but my web.config file reference it from

    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />

    and I change it to

    <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />

    it works for me in MVC5.

    Please check highlighted section in my attachment for more clearance.

    0 讨论(0)
提交回复
热议问题