Copied to clipboard

Flag this post as spam?

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


  • Jordi 25 posts 47 karma points
    Feb 05, 2012 @ 20:45
    Jordi
    0

    CSS not working in remote hosting

    Hello

    I have installed uBootstrap 1.0.4 on a Umbraco 4.7.1.1 fresh site.

    On my PC with web matrix server it works perfect. I have FTP'd all site to http://demo.hikingspain.net but the CSS's are not applied to the site.

    What could be the reason?

    I am using dotnet-host hosting and with the remote IIS administrator I can not see if it is working with Integrated Mode.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 05, 2012 @ 20:49
    Jan Skovgaard
    0

    Hi Jordi

    Hmm, perhaps you should try and go into the app_data folder and in the "TEMP" folder try deleting the clientdependency folder to see if that has an effect.

    Otherwise try contacting your hosting company to ensure that the IIS settings are correct and that the iis_iusrs group has the proper permissions.

    Hope this helps.

    /Jan

     

  • Jorge Lusar 150 posts 489 karma points
    Feb 05, 2012 @ 20:57
    Jorge Lusar
    0

    Hi Jordi,

    uBootstrap relies on the dotless.Core.dll and ClientDependency to render the stylesheet, so there might be some things I can think of:

    1) Can you see the stylesheet via /less/theme.less? example http://bs.jlusar.es/less/theme.less

    2) If not, is the dotless.Core.dll installed in the bin folder and the <add name="DotLessCss" verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core" preCondition="integratedMode" /> handler set in the web.config?

    3) If you can see the /less/theme.less but not the stylesheet rendered via ClientDependency, try either clearing the files in the App_Data/ClientDependency folder or changing the version number in the config/ClientDependency.config file

    4) Is your app running in Full Trust?

  • Jorge Lusar 150 posts 489 karma points
    Feb 05, 2012 @ 21:01
    Jorge Lusar
    0

    It looks like the .less file is throwing a 404. Please ensure the file is there and modify the web.config as explained here http://stackoverflow.com/questions/6025145/dotless-file-yields-404-error-in-iis and http://stackoverflow.com/questions/7558461/less-stylesheet-file-406-on-iis7-discountaspnet.

    <staticContent>
      <mimeMap fileExtension=".less" mimeType="text/css" />
    </staticContent>
    
  • Jordi 25 posts 47 karma points
    Feb 05, 2012 @ 21:58
    Jordi
    0

    Hi

    • I deleted items in clientdependency folder in TEMP
    • /less/theme.less is in the server
    • dotless.Core.dll is installed in the bin folder
    • the application runs in Full Trust (Full - internal)
    • <add DotLessCss ..> is set in web.config

    No changes

    After adding <mimeMap fileExtension=".less" ... > there was a change, it looks like some CSS is applied but the result is not correct as you can see at http://demo.hikingspain.net now.

    I have other sites running umbraco in the sam host with no problem, If the problem is with LESS. Is it possible to run uBootstarp deactivating LESS for a test?

    Thanks for helping me.

    I'll ask hosting suport about Integrated Mode and IIS_IUSRS

  • Jorge Lusar 150 posts 489 karma points
    Feb 05, 2012 @ 22:17
    Jorge Lusar
    0

    Hi Jordi,

    The stylesheet in http://demo.hikingspain.net/less/theme.less should look like this one http://bs.jlusar.es/less/theme.less. Have you tried the suggestion from http://stackoverflow.com/questions/7558461/less-stylesheet-file-406-on-iis7-discountaspnet where you add the mimetype "text/less"? Example

    <staticContent>
      <mimeMap fileExtension=".less" mimeType="text/less" />
    </staticContent>
    

    I'm afraid that there is no way to run uBootstrap without .less as the stylesheets are precompiled and there are not any fallback .css files.

  • Jordi 25 posts 47 karma points
    Feb 05, 2012 @ 22:21
    Jordi
    0

    The hosting support has answered very fast

    - I am running in ASP.NET 4.0 .
    - Your application pool is dedicated and runs with its own user so IIS_iusers do not need any permission, but the user assigned to your pool has all required permissions.

    I can change ASP.NET 4.0 to ASP.NET 4.0 Integrated Pipeline, I'll try it and let you know.

  • Jordi 25 posts 47 karma points
    Feb 05, 2012 @ 22:26
    Jordi
    0

    Eureka. The problem came from running ASP.NET 4.0 in Classic Mode. After switching to Integrated Pipeline the CSS are rendered perfect.

    THANK YOU!!!

    Jordi

  • Jorge Lusar 150 posts 489 karma points
    Feb 05, 2012 @ 22:30
    Jorge Lusar
    0

    Excellent! I'm glad it worked :) Remember to mark the thread as answered by clicking the check mark ;)

    J

  • Marcos 9 posts 30 karma points
    Feb 29, 2012 @ 11:36
    Marcos
    0

    Hi everybody. I'm having the same problem. I tried all the solutions listened here but no joy.

    My hosting provider is Arvixe.

    The app runs in full tyust

    The less files are correctly configured.

     

    Like jordi, uBootstrap shows only partially. It seems that some less is being parsed but there's something missing.

    But unlike Jordi, if I switch to integrated pipeline, umbraco's backend doesn't show correctly (no js and css) so i must remain in standard pipeline.

     

    You can view the site here: http://casa.ingaldi.com

     

    Any ideas?

    Thankyou

    Mark

  • Jorge Lusar 150 posts 489 karma points
    Feb 29, 2012 @ 11:45
    Jorge Lusar
    0

    Hi Marcos,

    As I mentioned in the requirements http://bs.jlusar.es/about-ubootstrap/requirements, I have only tried this on Umbraco Version 4.7.1 running on IIS7.x and on Integrated Mode.

    Cheers,

    J

Please Sign in or register to post replies

Write your reply to:

Draft