Problem in MVC project when loading through VS 2013

After installing VS2013  I have an MVC3 application which now fails with the following runtime error:

Method not found: ‘System.Collections.Generic.Dictionary`2<System.String,BlockParser>
System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords()’.

Solution:

In my web.config I noticed this block which I have now commented out, and now this error does not happen anymore:

<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>

2 thoughts on “Problem in MVC project when loading through VS 2013

  1. Thank you, I’ve been fighting with that problem for several hours, this is the only solution I’ve found that works.

  2. Thank you much, i was searching for this solution from very long

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.