Configuring IIS to serve forbidden ASP.Net files

Discussion in '.NET' started by jthg, Oct 19, 2007.

  1. jthg

    jthg

    Joined:
    Oct 19, 2007
    Messages:
    2
    I have a folder on my web server with static files for download. What's annoying is that IIS has a list of file extensions that it will simply refuse to serve as static files. Examples are .vb and .cs files that will return a "This type of page is not served." error if you try to browse to them. Getting rid of the handler mappings will result in a file not found error - IIS won't default to serving them with its static file handler.

    I've tried everything I can think of in IIS configurations and my Google searches came up empty too.

    Does anyone know of or can think of any way to get IIS to serve all files in a certain folder as static files?

    Thanks for any help.
    jthg, Oct 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Hunt
    Replies:
    4
    Views:
    11,301
    gullsinn
    Oct 4, 2009
  2. Vitaly Sedov

    IIS doesn't serve ASP.NET Applications

    Vitaly Sedov, Aug 10, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    4,614
    John Timney \(MVP\)
    Aug 11, 2006
  3. jeff

    IIS won't serve my ASP.NET pages

    jeff, Jan 7, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    223
  4. Mark J. McGinty

    IIS 6 won't serve .REG files?

    Mark J. McGinty, Jun 17, 2005, in forum: ASP General
    Replies:
    8
    Views:
    302
    Mark Schupp
    Jun 21, 2005
  5. Mark J. McGinty

    IIS HTTP 403.1 Forbidden: Execute Access Forbidden

    Mark J. McGinty, Dec 9, 2005, in forum: ASP General
    Replies:
    2
    Views:
    352
    Kyle Peterson
    Dec 9, 2005
Loading...

Share This Page