IIS 7.5 Request Filtering File Name Extension Issue With JQuery

Posted on 2011-10-06
Last Modified: 2012-06-22
Here's my environment:
Windows 2008 R2
IIS 7.5
MS SQL Server 2008 R2

I am being required to setup IIS with request filtering to allow only specified file name extensions.  I have the development site working with the extensions I have selected, but one JQuery stylesheet seems to be blocked (jquery-ui-1.8.11.custom.css) with a 404.7 that is supposed to be the response when the extension is not in the allowed list.  All other CSS files load fine.

If I check "Allow unlisted file name extensions" everything works fine.  The odd thing is that even though I have not specified CSS as an allowed file name extension, all my CSS files load except this one.  If I add the CSS extension as allowed and uncheck the "Allow.." checkbox, my UI turns to trash like none of the CSS is being loaded event though none of the CSS requests are showing up as being denied.

Has anyone else encountered this issue?
Question by:fredsmullin
    1 Comment

    Accepted Solution

    Sorry!  I figured it out.

    I found in the IIS log files that 500.19 errors were being generated for all CSS files when I added the CSS filter.  I traced this back to web.config files scattered through my folder tree that must have been generated by IIS when I turned on the request filtering.  The main CSS folder had a web.config file with allowed filters for CSS.  The file jquery-ui-1.8.11.custom.css was in a different folder and it's web.config did not allow CSS.  Thus, requests where denied.  Once I corrected the web.config(s) and removed the CSS file name extension from the IIS request filter list, it all started working.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    The viewer will learn how to dynamically set the form action using jQuery.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now