I've been successfully using .less
files in my dev Cassini server (with dotless) for a few weeks but when I publish to my local IIS server they yield 404 errors. Attaching my debugger to IIS yields no exceptions. I've restarted my IIS app pool and server as well.
Any ideas?
Looks like you're missing a mime type on IIS.
For IIS7 add the following to your web.config
:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".less" mimeType="text/css" />
</staticContent>
</system.webServer>
For IIS6 you can do (presuming you have administrator RDP access):
cscript adsutil.vbs set W3SVC/1/Root/MimeMap ".less, text/css"
Where /1/
is the IIS number of the site.