I am developing a web application and running it using IIS. My application is a file server. I need to render files in a web browser, and I have some problems viewing some files or directories.
For example, I cannot view files with the extension .cs or the contents of bin directories. The web server returns 404 for these URLs:
Server Error HTTP Error 404 - File or directory not found. Description: The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. Server Version Information: Internet Information Services 7.0.
I guess this is the kind of protection that IIS has. My questions:
- Do you know why IIS filters these files?
- Do you know how to configure IIS to allow these URLs?
And the most important question for me:
- I need to deploy my web application to many clients, so I would like to configure it programmatically. Do you know if it can be configured in a web application , instead IIS is correct? Otherwise, how do I configure it using a script or similar?
Daniel Peรฑalba
source share