You need to add a handler mapping in the IIS config.
Site -> Handler Mappings -> Add Script Map
Request path: *.less
Executable: c:\Windows\Microsoft.NET
\Framework64\v4.0.30319\aspnet_isapi.dll
Name: Less CSS
On Mar 14, 4:53 am,
dgo.ponci...@gmail.com wrote:
> I've been reading previous threads, people having similar problems to get
> it to work under IIS 7.5, in Classic Mode.
>
> In my web.config, I added *<add verb="*" path="*.less"
> type="dotless.Core.LessCssHttpHandler, dotless.Core" validate="false" />** *to
> *system.web >> httpHandlers*, and *<add name=".LESS"
> preCondition="integratedMode" verb="GET,HEAD" path="*.less"
> type="dotless.Core.LessCssHttpHandler, dotless.Core" />* to
> system.webServer >> handlers, but it gives an "The requested content
> appears to be script and will not be served by the static file handler"
> error.
> If I add *<mimeMap fileExtension=".less" mimeType="text" />* to *
> staticContent*, the error goes away, but the .less won't be transformed*.*
>
> Appreciate any help!
--
Check out the PageUp People Blog <
http://blog.pageuppeople.com/> | Privacy
Policy <
http://www.pageuppeople.com/privacy-policy> | Careers on facebook<
http://www.facebook.com/PageUpPeopleCareers>
<
http://www.pageuppeople.com>