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:
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.
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.
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.
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:
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
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:
But this doesn't:
Tim
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
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
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
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
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
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
is working on a reply...