Copied to clipboard

Flag this post as spam?

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


  • Chris Erickson 1 post 71 karma points
    Mar 08, 2017 @ 17:31
    Chris Erickson
    0

    Problems adding external css and js files

    Hello all,

    Very new to Umbraco and not really sure what I am doing wrong. Using the default starter kit (fanoe) I am trying to add the following to the Master Template:

      <link rel="stylesheet" type="text/css" href="/css/kendo.common.min.css" />
      <link rel="stylesheet" type="text/css" href="/css/kendo.default.min.css" />
    

    However, when I test the site I am getting 404s saying:

    HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).(XHR)GET - http://localhost:52990/source/web/kendo.common.css
    
    HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).(XHR)GET - http://localhost:52990/source/web/kendo.default.css
    

    I am also getting a script undefined error but I think if I can figure out how/where to put files or what is happening with the paths everything will sort itself out.

    Oddly I am seeing the files in backoffice.

    Any help would be appreciated.

    Thanks, Chris

  • Nigel Wilson 944 posts 2076 karma points
    Mar 12, 2017 @ 22:41
    Nigel Wilson
    0

    Hi Chris

    Firstly the link tags show ".min.css" files, but the 404's show the non minified css file. Is this part of the issue ?

    Also the localhost URL looks plain weird - typically it should be http://localhost:52990/css/mycssfile.css

    In terms of your Visual Studio solution have you got the start website and directory set correctly within the project ?

    Cheers, Nigel

Please Sign in or register to post replies

Write your reply to:

Draft