Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Web.Razor.Parser.MarkupParser can't load #5

Open
PooreMan opened this issue Oct 3, 2012 · 4 comments
Open

System.Web.Razor.Parser.MarkupParser can't load #5

PooreMan opened this issue Oct 3, 2012 · 4 comments

Comments

@PooreMan
Copy link

PooreMan commented Oct 3, 2012

When attempting to run the sample "MvcWebApiSiteTest" project included in this package, it throws the following exception in RazorViewParser.cs, Line 50: "Could not load type 'System.Web.Razor.Parser.MarkupParser' from assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

@jakejscott
Copy link

I get the same error, is anyone maintaining this project?

@jakejscott
Copy link

So turns out the problem is that Razor Engine does not yet support the 2.0 version of Razor yet. You can add this to your web.config and it will work... Need to get the Razor Engine dudes to create a branch for Razor 2.0 but I think its a big job

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

Read about it here

https://github.com/Antaris/RazorEngine/issues/57

@jakejscott
Copy link

I think there is an experimental branch here that upgrades it to Razor 2.0 https://github.com/coxp/RazorEngine/commits/release-3.0

@di97mni
Copy link

di97mni commented Dec 20, 2012

Any plans to fix this in the near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants