ASP.NET ==> This type of page is not served.?

Discussion in 'Digital Media' started by aryaxt, Apr 19, 2008.

  1. aryaxt Guest

    aryaxt
    This type of page is not served.
    Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.mdf' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

    I have a link to an mdf file so u can download the mdf file by clicking on the link.
    this is the url and the file exists there, and there is no typing mistake (remove spaces )
    http:// localhost:2234 /PickYourOdds /Admin /Backup /aspnetdb-18-4-2008.mdf

    any idea?
    and what if I'm using visual studio?
  2. C B Guest

    C B
    Microsoft meant this to be a security feature so that IIS wouldnt hand out mdfs to anyone who knew/guessed the proper path/url. To disable this feature and re-allow mdfs to be served, log into the IIS Manager of the Webserver and do the following:

    On the treeview, Right Click on the target website folder -> Properties

    Under the "Directory" or "Virtual Directory" tab, go to "Configuration" Under the "App Mappings" tab, scroll down and find the ".mdf" extension in the list.

    Click Remove. Apply and exit. Then go to Start -> Run -> cmd OR bring up the command prompt somehow, and type in "iisreset /restart" OR restart iis from the management console.


    After IIS has been restarted, voila! Your website will now serve mdfs
    C B,
Loading...

Share This Page