I have a clean install of 4.52 ASP.NET 3.5 on IIS7 in Integrated Mode. The home page cannot find the CSS files and the script files. If I type http://server/newSite, the styles and scripts don't show up. They do show up if I type http://server/newSite/ (note the trailing slash). If I go to classic app pool, either URL finds the files and the site displays properly.
I've got umbracoUseDirectoryUrls set to true and I've added a precondition="" to the UrlRewriteModule.
No clue where to go from here - I'd like to use Integrated Mode if possible.
The head section of the page is as follows. As I said, in pipeline mode, the style sheets and the script files throw a 404. If the site url is trailed with a slash, the files load as expected.
path problem IIS7 Integrated Mode
I have a clean install of 4.52 ASP.NET 3.5 on IIS7 in Integrated Mode. The home page cannot find the CSS files and the script files. If I type http://server/newSite, the styles and scripts don't show up. They do show up if I type http://server/newSite/ (note the trailing slash). If I go to classic app pool, either URL finds the files and the site displays properly.
I've got umbracoUseDirectoryUrls set to true and I've added a precondition="" to the UrlRewriteModule.
No clue where to go from here - I'd like to use Integrated Mode if possible.
Thanks,
Jon
Hi Jon,
I'm not sure why but it looks like the requests are being handled by a different module.
Does it help adding to following attribute to the modules section?
<modules runAllManagedModulesForAllRequests="True">
Grtz
Thanks for the reply. Unfortunately that doesn't seem to help.
That's odd.
And if you look at the HTTP requests for the missing CSS/JS do you get 404 or 500 error messages?
If it's a 500 you might learn more from the error message?
It throws a 404
Is the URL of the requests somewhat different than the working requests (when using trailing slash) ?
How exactly are you referencing the CSS/JS files in your template ?
The head section of the page is as follows. As I said, in pipeline mode, the style sheets and the script files throw a 404. If the site url is trailed with a slash, the files load as expected.
I tend to add a leading slash to the CSS/JS paths, e.g. "/scripts/curvycorners.js", does that make a difference?
You bet it does - then nothing works.
Well, I honestly believe the leading slashes are causing it.
I'm not sure about those CSS import statements, but this should work:
Thanks for all of your help. Unfortunately that doesn't work either. After some more searching around, I found an approach that does work at http://aspnetresources.com/blog/more_on_url_rebasing_in_master_pages. Here's the final version.
is working on a reply...