Share via


StaticFileHandler Class

Provides access to specified file types.

Internal Class StaticFileHandler
    Inherits IHttpHandler
internal class StaticFileHandler: IHttpHandler

Remarks

The StaticFileHandler class is an internal type that handles access to specified files. This class returns the content of a file as is, without any processing. In case of file access issues, an exception of type HttpException is generated that displays one of the following errors:

  • HTTP 401 error "Unauthorized"

  • HTTP 403 error "Forbidden: Access is denied"

  • HTTP 404 error "File or directory not found"

For more information, see httpHandlers Element (ASP.NET Settings Schema).

Requirements

.Net Framework Version: 1.0, 1.1, or 2.0

See Also

Reference

System.Web

IHttpHandler

httpHandlers Element (ASP.NET Settings Schema)

add Element for httpHandlers (ASP.NET Settings Schema)