Copied to clipboard

Flag this post as spam?

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


  • Tim Watts 90 posts 395 karma points
    Jan 17, 2014 @ 13:56
    Tim Watts
    0

    Minify 404 not found

    Hi,

    I have got Asset Compressor working on my local environment and it does a brillaint job (thanks!)

    When I come to put it onto our development server the CSS and JS are not being loaded (Fiddler is showing me 404 errors on any of the resources prefixed with Minfiy).  An example of the stylesheet import is:

    <link rel="stylesheet" href="/Minify?f=/css/skeleton.css;/css/layout.css;/css/reset.css;/css/common.css">

    The Javascript imports are much the same.

    All work fine on my PC with the same code, but not on the server.  I have uninstalled and re-installed the Asset Compressor package but to no avail.

    Do yo have any ideas?

    Thanks,

    Tim

  • Tim Watts 90 posts 395 karma points
    Jan 17, 2014 @ 16:12
    Tim Watts
    0

    To update, if I copy the code from my Dev server to my local PC then it works fine.  I don't change a thing, just point IIS at the new folder.

    If I copy my local files onto the server and just change the paths and DSN in the web.config then it doesn't work.

    I have compared all the IIS settings and can't see anything different.  It is possibly a server conffiguration issue?  Both my PC and the server are 64bit IIS7.5, PC is Windows 7, server is Windows Server 2008 R2 Standard.

    I have tried all the usual responses, restart IIS, republish all Umbraco nodes, reboot server but I'm running out of ideas.

    The web.config defniitely includes the section in system.webServer modules, and in system.web httpModules.  Also includes the umbracoRevservedUrls and umbracoReservedPaths entries.

    This works:

     <link rel="stylesheet" href="/css/common.css">

    But this doesn't:

     <link rel="stylesheet" href="/Minify?f=/css/common.css">

    Tim

  • Tim Watts 90 posts 395 karma points
    Jan 17, 2014 @ 16:33
    Tim Watts
    0

    Umbraco version is 4.11.7

    Application pool is running .net 4.0 and Classic pipeline

    Website is set to Full trust

    These are both the same on my local PC which works fine

    Tim

  • Tim Watts 90 posts 395 karma points
    Jan 17, 2014 @ 18:04
    Tim Watts
    0

    The server didn't have Java installed but I have installed v7 now.  Still no luck.

    Obiouvlsy my PC has Visual Studio and other development tools, the server doesn't.  What else might I need apart from Java?

    Tim

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 20, 2014 @ 09:12
    Richard Soeteman
    1

    Hi Tim,

    I assume the AssetCompressor package uses a HTTPModule, or handler  and when you set the Application Pool of your server to integrated mode instead of classic I think all should work.

    Best,

    Richard

  • Tim Watts 90 posts 395 karma points
    Jan 20, 2014 @ 09:33
    Tim Watts
    0

    Hi Richard,

    Thank very much that makes it all look like it works.  Changing that will mean I need to do a fair bit more testing but the initial signs are good.

    The confusing thing is that the app pool is set to Classic on my PC and on another developers and it works fine!

    Tim

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 20, 2014 @ 09:38
    Richard Soeteman
    1

    Are you running from Visual studio on your local machine? If that is a yes it's because you are running IIS Express then which uses the integrated mode by default. It could also be that there was some additional configuration done on local machines to make the classic HTTP Handler configuration possible But I assume you are using IIS Express to run locally.

    Best,

    Richard

  • Tim Watts 90 posts 395 karma points
    Jan 20, 2014 @ 09:58
    Tim Watts
    1

    We are running Visual Studio but not using IIS Express.  The application pools locally are configured as Classic (but have been changed today).

    No worries, thanks again for your help.

    Tim

Please Sign in or register to post replies

Write your reply to:

Draft