RazorEngine and ASP.NET WebPages v2

I use RazorEngine for generating emails. Unfortunately, it has a dependency on ASP.net Web Pages v 1. The best way to install this on a machine that doesn’t already have v1 in the GAC is to issue a bindingRedirect.

  <runtime>
    <assemblyBinding  xmlns="urn:schemas-microsoft-com:asm.v1">
      <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" />-->
        <codeBase version="1.0.0.0" href="bin\v1\System.Web.Razor.dll" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>