IIS 7 Not Serving Files - 404.7 Error

Posted Friday, June 12, 2009 1:28:05 PM
I recently discovered that our IIS 7 server would not serve requests made for MDB files. It would instead serve a 404 error message. Having had a similar experience with IIS 6, I immediately went to check if there was a Mime Type added for MDB files. To my surprise there was. I did some research and some reading and couldn't find any reason why IIS would refuse to serve the file. I eventually turned on custom errors for the site having the trouble and was given a more specific 404 error message: a 404.7.

I read the "things you can try" section of the error message, which led me to the applicationhost.config file (located at C:\Windows\System32\inetsrv\config\). I opened it and did a find for .mdb. I found it under the RequestFiltering section of the config document. It was explicitly added with the attribute "allowed" set to "false". Now, just verify that this was indeed the problem I deleted the entire line from the applicationhost.config and saved it. Immediately IIS started serving the MDB files.

Now, the problem with doing this in the applicationhost.config file is that it will allow MDB files to be served on ALL websites unless the website explicitly denies it. This isn't what we want because it's not exactly secure, it's just needed for this particular client. The solution was to create a web.config file in the root of the website. I did this and configured it like so:

<?xml version="1.0" encoding="UTF-8"?>
        <fileExtensions allowUnlisted="true" >
          <remove fileExtension=".mdb" />
          <add fileExtension=".mdb" allowed="true"/>

This tells IIS to allow MDB files to be requested. You MUST include the <remove> tag otherwise you will get an error because the MDB extension has already been explicitly denied. By removing it you can then add it and explicitly allow it.
Comments: 25 (View | Post)
Categories: Most Popular, Technical

Post A Comment

View Comments

There are 25 comments on this article
Sandrages (2 days ago)
Here loveawake.ru you are waiting for interesting Dating only for adults!
belleLap (2 months ago)
Hello i am new user and i would to ask you, How to disable avatar?
Natashacrify7335 (3 months ago)
Perfect update of captcha recognition software "XRumer 19.0 + XEvil 5.0":

Captchas solving of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
and more than 12000 another subtypes of captcha,
with highest precision (80..100%) and highest speed (100 img per second).
You can use XEvil 5.0 with any most popular SEO/SMM software: iMacros, XRumer, SERP Parser, GSA SER, RankerX, ZennoPoster, Scrapebox, Senuke, FaucetCollector and more than 100 of other software.

Interested? You can find a lot of introducing videos about XEvil in YouTube.


See you later!
KristinafaiZe (7 months ago)
Anybody home? :)
CyberXwrave (8 months ago)
Eskadron is among the most valued high-street manufacturers on the entire world that specializes in the production of top quality equestrian clothing and equipment. This Italian concern has been set by Pikeur wanting to fulfill the jockeys' demands, who were looking for professional but also stylish equestrian accessories. Thus, why is Eskadron so special and why their selections are so popular with riders?Eskadron Why would riders from all over the world love this new?
Eskadron continues to be tremendously popular among horse-riding fans for a dozen or more years today. This brand's products are characterized by their own supreme quality attention for detail. Eskadron is also appreciated for their unique practicality, elegance, innovativeness of their own projects, modern design, and availability. The brand's offer has both professional items and ones for recreational riders. Thus, you'll discover basic design clothes, professional design, and various accessories necessary for your proper saddling of a horse. Eskadron offers saddle fabrics, halters, rugs, bell boots for horses, boots, fly vases, bandages, but in addition hoodies, t shirts, breeches, also show coats. These products come from the eu, which additionally verifies their own quality.Eskadron's collections
Eskadron has many selections. Some are seasonal, many others are constantly available in their deal. The most Well-known collections of the brand are:
Classic Sports - launched twice per calendar year, this line is composed exclusively of horse riding equipment. Services and products out of this collection are very simple, in conventional soft colours but at exactly the identical time quite tasteful.
Platinum Card - launches once annually for those who prefer conventional solutions. You'll mostly find black and gray colors together with delicate picture themes.
Young Star - lineup for kiddies that begin their experience with horse riding. It has basic horseriding accessories in bright colours and extraordinary patterns.
Equestrian Fanatics - clothing line designed for riders that like to stand out. Available jackets, hoodies, and backpacks successfully combine casual clothing with equestrianism.
Classic offer - Their steady offer of clothing, equipment, and accessories. You can find products used for training and everyday rides but additionally elegant show clothing.

Eskadron is a fresh used by cyclists from all around the globe. For the comfort of safety and riding both yours and your horse, it is well worth investing in high quality articles, which will allow you to fully appreciate this sport that is exceptional.
belleLap (8 months ago)
Hi :). I am from Netherlands and i don't know how can i disable my signature? Regards :)
Dariosnila (11 months ago)

<quote>ключи домофон дом ру</quote>попробуйте сделать заказ тут, по крайней мере ни чем не рискуете кЕЙэнэфсиру ….
Gecsof (11 months ago)
Hello. Comfort. Joy.
<a href=usacialisgt.com>cialis generics</a>

See you later
<a href=usacialisgt.com>Cialis miami</a>
Genericsof (11 months ago)
Hello. Comfort. Joy.
<a href=usacialisgt.com>cialis produce impotencia</a>

See you later
<a href=usacialisgt.com>Price Cialis cheap</a>
Johnnysof (11 months ago)
Hello. Happy New Year 2020
<a href=usacialisgt.com>buy real generic cialis</a>

See you later
Dariosnila (1 year ago)

Где точно знают, подойдет мне УКП-66 или нет?
CraigTob (1 year ago)
Hi! I could have sworn I’ve been to this blog before but after looking at
a few of the posts I realized it’s new to me. Regardless,
I’m definitely happy I came across it and I’ll be bookmarking it and checking back frequently!
Dustin Deshazo (5 years ago)
Awesome! Fixed my issue I was having serving .mbd files!
Dimcho (5 years ago)
I don't have this applicationhost,config file in my PC. Could you suggest what I can do please?
Dimcho (5 years ago)
I don't have this applicationhost,config file in my PC. Could you suggest what I can do please?
Dimcho (5 years ago)
I don't have this applicationhost,config file in my PC. Could you suggest what I can do please?
Dimcho (5 years ago)
I don't have this applicationhost,config file in my PC. Could you suggest what I can do please?
Ronak (5 years ago)
Thank you Adam for your clear explanation. It helped me a lot.
Ronak (5 years ago)
Thank you Adam for your clear explanation. It helped me a lot.
Ronak (5 years ago)
Thank you Adam for your clear explanation. It helped me a lot.
jenya (6 years ago)
I have it with allowed="true"
but still get 404 error
Lau (6 years ago)
Thank you!
Amit (7 years ago)
Thanks ADAM :) It really worked for, struggled alot for this issue, this really emptied my mind. Great work...!
Dave Diehl (8 years ago)
Adam -- Thanks for the tip but folks might find that updating the "Request Filtering" panel in IIS7 does the same thing and may be easier than editing XML. They may have to also add the file extension as a file/download MIME type, depending on the extension itself.
gasper (9 years ago)
Thanks you for the tip, it works perfectly now.