Copied to clipboard

Flag this post as spam?

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


  • Umbraco Newbie 22 posts 124 karma points
    Feb 11, 2017 @ 12:55
    Umbraco Newbie
    0

    Umbraco 7.5.6 Bundle Returns 404 for css

    Hi I have been looking for ages on this and cannot find the answer, I have

    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/app/,~/bundles/" />
    

    Added, I also have

    protected override void ApplicationInitialized(UmbracoApplicationBase applicationBase, ApplicationContext applicationContext)
            {
                BundleConfig.RegisterBundles(BundleTable.Bundles);
            }
    

    And it hits my bumdles.cs file.

    But when I run the project I get the following.

    http://localhost/Content/styles?v=BDDz1tl0Hji2Ny7jRDLoJbyD8jSaPFwblAnq6wwhnV81

    Google Chrome Dev tools stating 404,

    http://localhost/bundles/jquery?v=l_2JQLDpEf4NHz4ob7KHLjmeRFnOogKHIQKkMQQ4Chs1 states 200.

    I can copy link http://localhost/Content/styles?v=BDDz1tl0Hji2Ny7jRDLoJbyD8jSaPFwblAnq6wwhnV81 and paste into browser address bar and works OK.

    As stated I have searched for hours on this and tried every example found, but no luck.

    Can anyone help

    George

    If minification turned off, works OK

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Feb 13, 2017 @ 18:05
    Paul Seal
    0

    Hi George Make sure you've not got scripts and styles mixed up in terms of bundle tables.

    Check your code against this article. http://www.codeshare.co.uk/blog/how-to-use-bundling-to-minify-css-and-javascript-in-mvc-and-umbraco/

  • Umbraco Newbie 22 posts 124 karma points
    Feb 13, 2017 @ 19:15
    Umbraco Newbie
    0

    Hi Paul

    I had already looked at that, when I setup Grunt everything works OK. So I'm not sure what the problem is/was.

    But as now working with Grunt and everything working OK , just using that.

    Regards George

    P.S Enjoyed your YouTube videos on building website with Umbraco

  • 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