Copied to clipboard

Flag this post as spam?

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


  • Dan 1250 posts 3747 karma points admin c-trib
    Feb 11, 2013 @ 16:47
    Dan
    0

    Images from reserved URLs give 404

    Hi,

    A client has loaded up a flash presentation into their web space.  I created a 'safe' directory where this flash file and all of its resources could be placed.  It has been added as a reserved URL in their Umbraco web.config file:

    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/custom-content/" />

    When they load the HTML page containing the flash file it works fine.  However, the flash file fails to load any of the dynamic resources (images, zip files etc) it needs - they all give 404 errors.  I can see the file paths being loaded using Chrome dev tools and they're legitimate file paths - the files are on the server but when they're called they just redirect to '/login.aspx?ReturnUrl=%2fcustom-content%2fthe-file-path-etc-etc'.  It's almost as if IIS is hijacking the images and zip files and preventing them from being served correctly, instead IIS is defaulting to the page defined in the authentication part of the web.config:

    <authentication mode="Forms">
    <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
    </authentication>

    Does anyone know why this is happening and how to allow it to serve the resources correctly?

    Thanks.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies