Copied to clipboard

Flag this post as spam?

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


  • Lake guy 5 posts 83 karma points
    Feb 22, 2017 @ 23:58
    Lake guy
    0

    IIS 7.5 site; no assets appear

    I realize this has been asked before in the general Umbraco threads, but bear with me.

    I just installed a fresh Umbraco install on my local machine. Works great. I then installed the Umazel theme and configured a basic layout. Still good.

    As soon as I copy the site to my web server (IIS 7.5 on Server 2008 R2, with a Sql 2008 R2 backend), my pages load but my asset paths appear to be incorrect. I'm hosting my site in a subdirectory. e.g. mydomain.com/umbraco.

    Looking in Chrome dev tools, I see that asset files are referencing a root based installation (all paths begin with /) rather than a relative path (beginning with ~).

    I can begin to go through and update media instances referencing the root directory, but I'd like to make sure I'm not missing something within the Umazel or Umbraco setup first.

    Suggestions?

    Thanks!

    (In attached image, the application path should be domain/testapp/assets, but currently appears as domain/assets)

    enter image description here

  • Sotiris Filippidis 286 posts 1501 karma points
    Feb 23, 2017 @ 09:15
    Sotiris Filippidis
    0

    You're right and this is on me. I coded the site under the assumption that it would always be installed at the root (hence the "/"s), which is something I do by habit since it's been very long since I had to handle an Umbraco install in a subfolder (I don't even know if this is possible any more).

    You could definitely try changing the paths, I don't know if this is the only thing required for it to work, but giving it a try does no harm - keep a backup handy so you can reset things in case it goes south.

  • Lake guy 5 posts 83 karma points
    Feb 23, 2017 @ 15:04
    Lake guy
    0

    Got it. Thanks for the confirmation. I just wanted to make sure, so (if) others have the same issue, they may be able to save a little time.

    On a similar note, my images don't appear either. Is there a global setting to help the kit find my media/images, or do I need to find these references in the code as well?

    Thanks again!

  • rakesh khoodeeram 6 posts 76 karma points
    Sep 25, 2017 @ 09:31
    rakesh khoodeeram
    0

    Hello,

    what was the solution ? Change all paths to include webapplication folder name?

Please Sign in or register to post replies

Write your reply to:

Draft