mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 49 forks source link

TypeLoadException in LessLogger constructor #198

Closed fjeldstad closed 12 years ago

fjeldstad commented 12 years ago

Hi,

After updating to 1.8.67, I get a TypeLoadException when requesting .less files. Stacktrace:

[TypeLoadException: Method 'Info' in type 'RequestReduce.SassLessCoffee.LessLogger' from assembly 'RequestReduce.SassLessCoffee, Version=1.8.67.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.]
RequestReduce.SassLessCoffee.LessHandler..ctor(IFileWrapper fileWrapper) in c:\RequestReduce\RequestReduce.SassLessCoffee\LessHandler.cs:37
RequestReduce.SassLessCoffee.Bootstrapper.<Start>b__0(Uri x) in c:\RequestReduce\RequestReduce.SassLessCoffee\Bootstrapper.cs:38
   RequestReduce.Handlers.HandlerFactory.ResolveHandler(Uri uri) in c:\RequestReduce\RequestReduce\Handlers\HandlerFactory.cs:48
   RequestReduce.Module.RequestReduceModule.HandleRRContent(HttpContextBase httpContext) in c:\RequestReduce\RequestReduce\Module\RequestReduceModule.cs:28
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

Of course, when looking at the source of LessLogger, the Info method is there (although empty). Googled a bit and found this post on StackOverflow which seems related. I'm using dotless 1.3.0.4 and I'm guessing that's the problem - RequestReduce.SassLessCoffee 1.8.67 is built against 1.3.0.2, right?

batkuip commented 12 years ago

Downgrading didn't work. Seems to be build against 1.3.0.4. Definitely something is busted. 1.8.67 is broken for less files.

fjeldstad commented 12 years ago

That's weird; downgrading to 1.3.0.3 worked for me...

23 jun 2012 kl. 09:59 skrev Thomas van der Heijden reply@reply.github.com:

Downgrading didn't work. Seems to be build against 1.3.0.4. Definitely something is busted. 1.8.67 is broken for less files.


Reply to this email directly or view it on GitHub: https://github.com/mwrock/RequestReduce/issues/198#issuecomment-6523354

batkuip commented 12 years ago

I downgraded to 1.3.0.2 and it complained it didn't have a ref to 1.3.0.4 ... didn't try 1.3.0.3 Anyway RR 1.8.32 works fine atm.

mwrock commented 12 years ago

Yes. I had to do some nasty reflection to get RR to play nice with Less 1,3. I submitted a request for thwm to make a couple API changes and they were kind enough to make those so I now need to change RR to play nice with those.