Skip navigation
SCadams_99
Currently Being Moderated

CF 10 developers edition  not showing CSS

Nov 4, 2013 5:34 PM

Tags: #installation #cf10

Installed CF10 dev edition, wtih internal web server on my laptop and desktop. Both 64 bit win 7 and did the servery updates.

Laptop sees css file, while the desktop does not - same code base.

 

I have reinstalled CF10 on desktop, but it did not fix the problem.

 

Any ideas?

 

Thanks,

 

Sam.

 
Replies
  • Currently Being Moderated
    Nov 5, 2013 2:55 AM   in reply to SCadams_99

    It may be due to Directory permission issue with the user. Here in the below URL it is described how to solve it.

     

    http://coldfusion-tip.blogspot.com/2013/10/you-do-not-have-permission- to-view-this.html

     

    If your issue is something different then please see the HTTP response of your CSS page loading by using firebug then you will get more information about the issue.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2013 10:39 AM   in reply to Upen@Roul

    I'm assuming this as a Windows / IIS / CF10 environment since it wasn't specified.

     

    Clear the browser cache and then reload the resources.  Is this actual CSS or is it LESS/SASS (if the latter, ensure the source code is 100% valid or the preprocessor can choose not to apply ANY styling)

     

    Using Chrome's Inspector (F12) and check under the Network Tab (you may have to reload the page).  Ensure that the .CSS file is returning a 200.  If it's returning any other code, let us know what it is.

     

    If you're using a toolbar, ensure that disabling of CSS styles is not enabled.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 6, 2013 7:47 AM   in reply to SCadams_99

    Help me understand here.

     

    You do NOT have IIS, which knows how to process HTML files and serve them up.  But you have installed CF as standalone (port 8500 by default).  Now, to my knowledge, CF serves CF-related files.  I don't know whether it's designed to handle HTML.  So if you place a .cfm file and a .html file into its root and navigate out to both of them, CF usually only is invoked if the file extension is a .cfm file (It is an application server, not a web server).  It would make sense that CF cannot "see" the index.html.

     

    Now, I know this is about seeing a .CSS file, but I'm wondering if we're having in essence the same problem.  You want the CSS file to be SERVED, but CF is just an application server, not a web server,  CF could read the contents of the CSS file, but again, it's not a web server, I don't think it will serve the file to the browser.

     

    For clarification, what do you mean by that a laptop "sees" the CSS file?  It's one thing if you tell a browser to manually OPEN a HTML/CSS file and you direct it to the location of a file.

     

    Also, what is the URL you are using to call this CSS file?

     

    http://localhost:8500/filename.css ?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 6, 2013 8:50 AM   in reply to SCadams_99

    Just to Confirm: When we are copying files into to web root of cf10 installation. Your css file directly under web root "C:\ColdFusion10\cfusion\wwwroot\filename.css" or

    in "C:\ColdFusion10\cfusion\wwwroot\{Some Directory}\filename.css"

     

    If second one is your case then you have to add your directory name in URL before file name:

    Like: http://localhost:8500/{Some Directory}/filename.css

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 6, 2013 10:31 AM   in reply to SCadams_99

    Do you have the css file available on your Desktop at C:\ColdFusion10\cfusion\wwwroot\?

     

    Can you create a test.cfm page. Paste the belwo code in it and save the file.

    <cfoutput>This is a test CFM page</cfoutput>

     

    Try to access the file http://localhost:8500/test.cfm and share the outcome.

     

    Regards,

    Anit Kumar

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 6, 2013 4:19 PM   in reply to SCadams_99

    Is it possible for you to share the css and the file using the same.

     

    Regards,

    Anit Kumar

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points