It's most likely that dotless is not serving the css as it should. The first thing I'd do is view the css file directly in the browser. If there;s a problem there you will probably get a YSOD which give you more info about what the problem is. The result you are seing also happens if there's an error within the css file. Dotless fails to return the css if there's a compile error in the css, but viewing the css through the browser will also show up where the error is.
If the answer is yes, then dotless is working as expected, so then try cleaning the ClientDependency file either by deleting the App_Data/TEMP/ClientDependency files or by changing the version number in the ClientDependency.config.
I have the same issue as Anthony but I have installed the uBootstrap newest version from Github and got the same issue when edit text in rich text field no css from the theme.css. And I dont get access to the /less/theme.less file I get a 404 error message. Where do I set the access for the less file?
I have also tried change the version number in the config file for clientDependency and remove the files in the TEMP folder but no luck with that approach.
page of uBootstrap starter package not rendering css
Hi,
I just installed the uBootstrap starter kit but if I visit the homepage, the css isn't rendered:
I would have posted this issue in the forum of the uBootstrap starter kit, but unfortunately there is none.
Thanks for your help,
Anthony
It's most likely that dotless is not serving the css as it should. The first thing I'd do is view the css file directly in the browser. If there;s a problem there you will probably get a YSOD which give you more info about what the problem is. The result you are seing also happens if there's an error within the css file. Dotless fails to return the css if there's a compile error in the css, but viewing the css through the browser will also show up where the error is.
HTH
Tom
Hi Tom,
Thanks for your advice. I looked up the source code of the rendered page. This is the link to the stylesheet:
So I tried to copy the url http://localhost/DependencyHandler.axd?s=L2xlc3MvdGhlbWUubGVzczs%3d&t=Css&cdv=1 to the address bar of my browser. This gave me an YSOD:
"System.ArgumentException: Could not parse the type set in the request"
I can't make much sense out of this, but maybe you can :)
Greetings,
Anthony
Hi Anthony,
Can you see the stylesheet file by accessing the /less/theme.less? There's a live example in here http://bs.jlusar.es/less/theme.less
If the answer is yes, then dotless is working as expected, so then try cleaning the ClientDependency file either by deleting the App_Data/TEMP/ClientDependency files or by changing the version number in the ClientDependency.config.
Cheers,
Jorge
Hi Jorge,
I checked the theme.less file in the Umbraco backoffice and the file was there, so that was ok.
Then I changed the version number to 2 <clientDependency version="2"> and now the css is rendered in the page.
Thanks,
Anthony
Hi Jorge
I have the same issue as Anthony but I have installed the uBootstrap newest version from Github and got the same issue when edit text in rich text field no css from the theme.css. And I dont get access to the /less/theme.less file I get a 404 error message. Where do I set the access for the less file?
I have also tried change the version number in the config file for clientDependency and remove the files in the TEMP folder but no luck with that approach.
Greetings,
Adam
is working on a reply...