Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Chad Rosenthal 272 posts 474 karma points
    Apr 09, 2013 @ 00:17
    Chad Rosenthal

    courier for v6 conflicts with microsoft.aspnet.web.optimizations

    Is there any way to compiler courier against an older version of antlr3?

    The microsoft.aspnet.web.optimizations framework uses webgrease which uses the antlr framework, but uses an older version. 

    I am now throwing an error due to incompatible dll's due to the web.optimizations framework. We are currently using the web.optimizations to compile and run the less bundler and minifiier.

    Here is the error that I get when trying to install the package:

    Could not load file or assembly 'Antlr3.Runtime, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)



  • Brendan Rice 303 posts 466 karma points
    Apr 09, 2013 @ 03:12
    Brendan Rice

    have a read at this Chad -

    similar issue on a different DLL same solution should apply

  • Chad Rosenthal 272 posts 474 karma points
    Apr 09, 2013 @ 06:35
    Chad Rosenthal

    This worked for me. Although, the one caveat is that I had to do some moving around of the dll due to the fact that the version that was causing the issue was added using nuget. So that one needed to be in the /bin folder if I ever want to use nuget to do an update. So I first moved it to a subfolder. Then installed courier, and then swapped the dll's moving the courier version to a subfolder.


  • Urvish 252 posts 770 karma points
    Oct 16, 2014 @ 14:56

    Hi Brendan,

    I got the same error while integrating Courier package.

    I have tried with link you provided , but the given link is not working.

    Can you please help ?

    @Chad Rosenthal : Can you please give solution which works for you. Because given link is not working.



Please Sign in or register to post replies

Write your reply to: