In IIS, when creating an application for a virtual directory, click "Configuration" for the application and edit the "Application mappings", i.e. add a new mapping for html.
Or, in your web.config, add the following sections:
<httpHandlers> <remove verb="*" path="*.html" /> <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" /> </httpHandlers> <compilation> <buildProviders> <buildProvider extension=".html" type="System.Web.Compilation.PageBuildProvider" /> </buildProviders> </compilation>
EDIT: added section, according to comment. Thanks to Chris.
Sunny milenov
source share