在VisualStudio 2012上使用MVC3出现错误的解决办法

时间:2014-05-24 01:34:56   收藏:0   阅读:1583

1. 错误:

找不到方法:“System.Collections.Generic.Dictionary`2<System.String,BlockParser> System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords()”。

解决方法:在web.config中删除:

<dependentAssembly>
   
<assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35"  
                      culture
="neutral"/>
   
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>

在VisualStudio 2012上使用MVC3出现错误的解决办法,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!