Copied to clipboard

Flag this post as spam?

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


  • Michael Nielsen 82 posts 362 karma points
    Feb 21, 2013 @ 09:25
    Michael Nielsen
    0

    Getting a 500 Internal Server Error

    Well guess the code i supplied for my last post messed some things up, so I'll try again.

    I have installed uLess, but I'm getting a 500 Internal Server Error on the .less file requests.

    The response is just some weird encoded code (I can't paste it in here as the forum will get messed up).

    I tried adding a Mime-Type, but no luck.

    Windows Server 2008 R2, IIS 7.5, App pool runs in .Net 4.0 Integrated.

  • Justin Spradlin 139 posts 347 karma points
    Feb 21, 2013 @ 19:23
    Justin Spradlin
    1

    Under the covers uLess is really just installing the dotLess HttpHandler found here http://www.dotlesscss.org/. It has been a while since I looked at the code, but I believe that all it is doing is adding a line like this to your web.config

     <addtype="dotless.Core.LessCssHttpHandler,dotless.Core" validate="false" path="*.LESS" verb="*" />

    Let me know if your web.config is missing that line.

     

    Thanks,

    Justin

  • Michael Nielsen 82 posts 362 karma points
    Feb 22, 2013 @ 09:49
    Michael Nielsen
    0

    Hi Justin

    Everything looks fine in web.config

    Under system.web > httpHandlers

    <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />

    Under system.webServer > handlers

    <remove name="DotLessCss" />
    <add name="DotLessCss" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" preCondition="integratedMode" />

    dotless.Core.dll present in bin folder

  • Michael Nielsen 82 posts 362 karma points
    Feb 22, 2013 @ 10:06
    Michael Nielsen
    100

    Well i just downloaded the latest version of dotless from GitHub, and uploaded it to the solution, and now it works fine.

    https://github.com/dotless/dotless/downloads

    Maybe there's something in the one in your package that is not compatible with the latest version of Umbraco?

    Or it might just be some weird bug I had.

Please Sign in or register to post replies

Write your reply to:

Draft