Copied to clipboard

Flag this post as spam?

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


  • Ziping Wang 3 posts 23 karma points
    Jan 30, 2012 @ 15:45
    Ziping Wang
    0

    can't load css, js file in webpage

    Hi,

    I installed Umbraco 4.7.1.1 using Web Platform Installer 3.0 on my dev machine(win 7). It seems fine.

    Then I create a website on Windows 2008 R2 machine and use xcopy to deploy umbrco website to that server.  

    then request the url. but i found no css and js files are loaded into the web page

    I have verified following things.

    1. the css and js files are there in physical path. e.g. /css/Designit_Green.css, it has 32k, I can open it in notepad

    2. I use identity LocalSystem to run the application pool. It can r/w everything in this website.

    3. Other websites hosted in this server work fine with css and js.

    4. when I request a css file in browser. e.g

    http://<servername>/css/Designit_Green.css

    I get 

     

    404 - File or directory not found.

    and the url in the address bar automatically changes to http://<servername>/login.aspx?ReturnUrl=/css/Designit_Green.css

    It seems normal because /login.aspx not exits on server, it exists in /umbraco/login.aspx.

    so  change the url to  http://<servername>/umbraco/login.aspx?ReturnUrl=/css/Designit_Green.css

    I get a login screen.

    question?

    1. why request a css or js files needs authentication?

    2.when needs a authentication, why rout to /login.aspx and it is not existing

    hoe can I solve this problem?

    Thanks & Reagards,

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 30, 2012 @ 16:16
    Jan Skovgaard
    0

    Hi Ziping and welcome to the community :)

    A few things to check

    1) Does network service and iusr havde the proper permissions on the folder containing your umbraco instance?
    2) Does the app pool run in integrated mode?
    3) Try deleting the temporary ClientDependency files from the app_data/TEMP/ClientDependency folder

    If none if the above suggestion seem to do the trick for you try consult this blogpost by Sebastiaan Janssen http://cultiv.nl/blog/2011/7/18/how-to-install-umbraco-manually/ and see if you have missed a step or something like that.

    Hope this helps.

    /Jan

  • Ziping Wang 3 posts 23 karma points
    Jan 30, 2012 @ 23:00
    Ziping Wang
    0

    The problem solved. It was related to ACL

    I have also tested Umbraco 5 RC3 , and it works fine.

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 02, 2012 @ 20:04
    Jan Skovgaard
    0

    Hi Ziping

    Good to hear you managed to get this solved - allthough I'm a bit unsure what ACL is short for? :)

    /Jan

  • Ziping Wang 3 posts 23 karma points
    Feb 03, 2012 @ 21:05
    Ziping Wang
    0

    Hi Jan,

    I mean access control list (ACL) which specifies the permissions on the file system.

    Regards,

    Ziping

     

     

Please Sign in or register to post replies

Write your reply to:

Draft