Copied to clipboard

Flag this post as spam?

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


  • setevoy 2 posts 72 karma points
    Aug 25, 2016 @ 10:10
    setevoy
    0

    GET /bundles/bundlename 404

    Hi.

    I'm not IIS administrator, not Umbraco user, and not .NET developer, but.

    We have an Umbraco application, migrated from another agency to ours. It works on Azure, WebApp.

    The problem is: developers team added new locale - but we can't make it work in our environment (but it works locally on developer's workstation). Also - all old locales - works fine (FR in the example below).

    We have locale bundle added to the ./App_Start/BundleConfig.cs:

        ...
        var fr_fr = new ScriptBundle("~/bundles/script_fr_fr");
        var pl_pl = new ScriptBundle("~/bundles/script_pl_pl");
        ...
        SetCommonIncludes(pl_pl);
        pl_pl.Include(
             "~/client/scripts/ui/dialog/AgeGateDialog_pl_pl.js"
        );
       ...
       bundles.Add(fr_fr);
       bundles.Add(pl_pl);
       bundles.Add(standAloneiFramePage);
       ...
    

    But after application build (with msbuild) and deployed (with msdeploy) - the fr_fr chapter works, while pl_pl - gives 404 error:

    Request URL:http://applicationstaging2.azurewebsites.net/bundles/scriptplpl Request Method:GET Status Code:404 Not Found

    We have umbracoReservedPaths in our web.config file with:

    ...
    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/api,~/Content,~/Controllers,~/Views,~/Areas,~/radio,~/bundles,~/bundles/" />
    ...
    

    As I understand - the "bundle" is a memory-based object, created by .NET application after GET request accepted. Then application "generates" this object, which includes some JS/CSS/etc data, put it to memory and must return by path */bundles/scriptname. I.e. - it's not a file system object, thus - I can't check its file on the server directly (and can't find it in memory, as this is not normal Linux box with all GNU's utilities).

    I'm confused - where to start investigation nad how to solve this. Or at least - how to debug it (Azure's "Application" and "Web server" logs - absolutely useless stuff).

    Any tips appreciated.

  • 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