Allow MDB Download in IIS7

Currently, if I host an Access.MDB file that allows users to boot, IIS7 throws a 404 error. I know that the file is there, and the permissions are fine. This is a Handler problem, but I cannot figure out how to modify the handler to allow the loading of the MDB file. I assume that I need to add something to the Handlers section of the web.config file, but I'm not sure about the syntax.

Thanks.

+5
source share
2 answers

Or, if you do not want to modify the system configuration file, you can add the following lines to this section in your web.config:

<remove fileExtension=".mdb" />
<add fileExtension=".mdb" allowed="true"/>

For example, your Web.config should look like this:

<configuration>
  <system.webServer>
    <security>
      <requestFiltering>
        <fileExtensions allowUnlisted="true" >
          <remove fileExtension=".mdb" />
          <add fileExtension=".mdb" allowed="true"/>
        </fileExtensions>
     </requestFiltering>
   </security>
 </system.webServer>
</configuration>

. http://www.adamwlewis.com/articles/iis-7-not-serving-files-4047-error.

+8

, .

:

<add fileExtension=".mdb" allowed="false" />

requestFiltering \Windows\System32\inetserv\config\applicationHost.config.

+1

All Articles