Copied to clipboard

Flag this post as spam?

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


  • Steve Barnhouse 40 posts 63 karma points
    Sep 18, 2010 @ 05:11
    Steve Barnhouse
    0

    Fresh 4.5.2 install cannot access style sheets

    New download, new database, new website, all local.  When I browse to the site to start the installation wizard, it is not finding the style sheets.  What could cause this, and how can I proceed?

    Here's what it looks like:

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 18, 2010 @ 11:03
    Dirk De Grave
    0

    Could use Firebug (for Firefox) or similar tools (for other browsers) to check why the css's are not loaded

     

    Cheers,

    /Dirk

  • Ferry Meidianto 36 posts 63 karma points
    Sep 18, 2010 @ 19:15
    Ferry Meidianto
    0

    Hi Steve,

    In addition to Dirk's suggestion, please also make sure that you have assigned Full Control to Network Service user on that css folder's security setting.

    Cheers,
    Ferry

  • Steve Barnhouse 40 posts 63 karma points
    Sep 19, 2010 @ 00:12
    Steve Barnhouse
    0

    Thanks for the advice Dirk and Ferry.

    I finally got to the root cause:  I am running SQL Server as my database, and I disabled the SQLExpress service.

    The default web.config file in a clean install specifies SQLExpress as the database in the appSettings key:

    <add key="umbracoDbDSN" value="server=.\SQLEXPRESS;database=DATABASE;user id=USER;password=PASS" />

    To fix my problem, I manually edited the web.config file to specify my SQL Server database, and everything worked fine.  Then, just to double check that that was the problem, I restarted the SQLExpress service and did a new clean install.  Sure enough, the browser found the css styles and images.

     

    --steve

  • Steve Barnhouse 40 posts 63 karma points
    Sep 19, 2010 @ 07:37
    Steve Barnhouse
    0

    The problem persists.  I got the css and images for the installer, but not for the umbraco editor or Runway pages.

    None of the styles or images are accessible on any of the umbraco editor pages.  The url is  http://localhost/umbraco/umbraco.aspx . 

    When I view the content of the Runway page, the styles are missing.  When I view the html source of the Runway page, the head attribute shows the css file:

    <link rel="stylesheet" type="text/css" href="/css/runway.css" />

    But when I try to navigate to the runway.css, the link gets redirected from localhost/css/runway.css  to http://localhost/login.aspx?ReturnUrl=/css/runway.css which generates a page not found error.

    Also if I browse to http://localhost/ in my browser, it gets redirected to http://localhost/login.aspx?ReturnUrl=/ and generates a page not found error with this message: 

    No umbraco document matches the url 'http://localhost/login.aspx?ReturnUrl=/'

    umbraco tried this to match it using this xpath query'/root/* [@urlName = "login"] | /root/*/* [@urlName = "login"]')

    If I browse to localhost/umbraco  it gets redirected and generates a page not found.

    If I browse to localhost/umbraco/umbraco.aspx it shows the editor page, but the images and css are missing.

    Why are my urls getting redirected to login.aspx?

    --steve

  • Steve Barnhouse 40 posts 63 karma points
    Sep 19, 2010 @ 21:59
    Steve Barnhouse
    0

    OK, I think I solved this by moving my files to wwwroot.  The physical path for the files to my site was located on d:\blah\bleh\mysite.  I moved the files over to c:\inetpub\wwwroot\mysite and now everything works fine.

    I'm not really sure what's going on, because up until this week, I had a test site running locally on d:\blah\bleh\testsite and it worked fine.  This week my testsite stopped working and my new fresh install did not work until I moved them to wwwroot.

    Also, as an aside, another thing I noticed is that if I run more than 1 site at a time (on separate ports of localhost) I occasionally (but not always) get this SQLServer error:  A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (.Net SqlClient Data Provider)

    If anyone knows more about either of these two issues, I'd be happy to hear about it.  Thanks.

    --steve

Please Sign in or register to post replies

Write your reply to:

Draft