Relax. ASP.NET Web Hosting without the hassles. Ring 1300 787 698
(
Skip Navigation Links : Knowledge Base : ASP.NET : Downloading file types blocked by ASP.NET

Downloading file types blocked by ASP.NET 

For security, ASP.NET blocks certain file types by default. Blocked file types include common database formats such as mdb and mdf.

To allow these files types to be downloaded by the public the following can be used in a web.config file:

<configuration>
 <system.web>
  <httpHandlers>
  <remove verb="*" path="*.mdb" />
  <add verb="GET,HEAD" path="*.mdb" type="System.Web.StaticFileHandler"/>
  </httpHandlers>
 </system.web>
</configuration>

The above example is for mdb files.

 

 

 

)