100% Australian Windows Web Hosting
  • Knowledge Base

Downloading file types blocked by ASP.NET 

Was this helpful? (0) (0)

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:

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

The above example is for mdb files.





Copyright © 2002 - 2021 StudioCoast Pty Ltd   |   ABN: 53 143 039 070