| IIS 7 Not Serving Files - 404.7 Error |
| Posted Friday, June 12, 2009 1:28:05 PM |
IIS 7 Not Serving Files
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"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions allowUnlisted="true" >
<remove fileExtension=".mdb" />
<add fileExtension=".mdb" allowed="true"/>
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</configuration>
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.
|
| Tags: 404 error, 404.7 error, applicationhost.config, configuration, error, file, file extension, fileextension, iis, iis 7, mdb, mime type, request filtering, requestFiltering, security, serve, server, static content, web.config, windows |
| Categories: Technical |
|
| Comments: 0 (View | Post) |
|
| |
 |
| New Professional Photos |
| Posted Monday, June 08, 2009 9:15:51 AM |
Saturday we went to MotoPhoto at the Dayton Mall to have a couple of
photos taken of Lilliann and one family portrait. Of course, once we got
there and they took 100 shots, we couldn't pick just 3... so we got the
entire session. I think they turned out nice, and we were very pleased
with the service we received. Below are the photos from Saturday.
|
|
|
| |
 |
| BlackBerry Storm OS 4.7.0.148 Review |
| Posted Thursday, June 04, 2009 11:06:20 AM |
RIM released BlackBerry Storm OS 4.7.0.148 this past Sunday, but I held
off upgrading until I heard if there were any major glitches with it.
Well today I took the plunge and installed it... and so far, two thumbs up.
The OS is much more responsive, and there are several updates that I
really enjoy like:
The New Cursor
I could use the Storm's touch screen pretty good to choose a point on the
screen and insert my text cursor there, however, it wasn't perfect. The
newest update includes a revised cursor/selection tool that when active
lets you scroll the cursor left, right, up, and down just like the
"ball" on other BlackBerrys. |
The New Copy/Paste
This is basically just an extension off of the first thing I love, but
with the new cursor tool also incorporated into the copy/paste method
of the BlackBerry Storm, this function is now even more easy to use and
powerful.
|
The Portrait QWERTY Keyboard
If you didn't notice in the previous two screen shots, this update now
includes a QWERTY keyboard in portrait mode for those two don't wish to
use the SureType or Multi-Tap keyboards. This was definitely a great
addition.
|
|
|
|
| |
 |
| Jungle Gym - Day 4 - Completion |
| Posted Wednesday, May 27, 2009 8:48:24 AM |
Randy and I finished the playset Friday night and Saturday morning,
finally! After it was done we both used the slide, and the swings. We
climbed the rock wall and the ladder. We then climbed to the top of the
swing beam and sat for a photo. While the playset isn't made of the best
wood (none of them are now days apparently), it is very very sturdy.
After we were done playing on it, I let me daughter start having fun.
|
| Related Articles |
|
| |
|
|
| |
 |
| Jungle Gym - Day 3 |
| Posted Friday, May 22, 2009 9:09:04 AM |
Yesterday was another productive day and we got quite a bit done. My brother,
my friend Matt, and two guys from work came over to help. It was good
having all the help though at times it did seem like there were too
many cooks in the kitchen. We raked out another 6 cubic yards of mulch
and then assembled the Grand Terrace portion of the play set. We also
started framing in the upper deck of the tower. Hopefully we'll finish
the project up today.
|
| Related Articles |
|
| |
|
|
| |
 |
|