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

前端 未结 7 443
孤街浪徒
孤街浪徒 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:30

    I had this problem. Maybe it occurred when I installed .NET MVC v4 over the top of MVC v3, not sure.

    Anyway I removed the System.Web.WebPages reference from my project. Then in the Add Reference dialogue .NET tab there were two System.Web.WebPages references listed, a version 1.0.0.0 and a 2.0.0.0. I made sure to add the version 1.0.0.0 one as that was the one that was missing.

    enter image description here

提交回复
热议问题