Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm suddenly getting a rather strange IIS error on my server:

There is no build provider registered for the extension '.html'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.

Since when does .html need a build provider??? I haven't touched any build provider or handler mappings. Haven't touched the default web.config or machine.config from the .NET config directory.

How does a web server forget how to serve HTML??? :(

share|improve this question

Add this to your web.config:

    <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />

You get this error when you try to return the html page from a route handler (or elsewhere) with BuildManager. At least it was like this in my case.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.