Error: There are no build providers registered for the extension ". html".

Source: Internet
Author: User
Tags stack trace

There are no build providers registered for the extension ". html". You can register one in the <compilation><buildProviders> section in Machine.config or Web. config. Make sure that the provider you are registering has a Buildproviderappliestoattribute attribute that contains the value "Web" or "all".

Stack trace:

[HttpException (0x80004005): 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 that the provider you are registering has a Buildproviderappliestoattribute attribute that contains the value "Web" or "all". ] System.Web.Compilation.CompilationUtil.GetBuildProviderTypeFromExtension (compilationsection config, String   Extension, Buildproviderappliesto neededfor, Boolean failifunknown) +12450941 System.Web.Compilation.BuildManager.CreateBuildProvider (virtualpath virtualpath, Buildproviderappliesto neededfor   , Compilationsection Compconfig, ICollection referencedassemblies, Boolean failifunknown) +58   System.Web.Compilation.BuildManager.CompileWebFile (virtualpath virtualpath) +525 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal (VirtualPath virtualpath, Boolean Nobuild, Boolean   Allowcrossapp, Boolean allowbuildinprecompile, Boolean throwIfNotFound, Boolean ensureisuptodate) +571 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext context, VirtualpatH virtualpath, Boolean Nobuild, Boolean Allowcrossapp, Boolean Allowbuildinprecompile, Boolean throwIfNotFound, Boolean E nsureisuptodate) +203 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (virtualpath virtualpath,   HttpContext context, Boolean Allowcrossapp, Boolean throwifnotfound) +249 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (virtualpath virtualpath, Type Requiredbasetype, HttpContext context, Boolean Allowcrossapp) +56 System.Web.UI.PageHandlerFactory.GetHandlerHelper (HttpContext   Context, String RequestType, VirtualPath virtualpath, string physicalpath) +42   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute (+516) System.Web.HttpApplication.ExecuteStep (IExecutionStep step, boolean& completedsynchronously) +288

Workaround:

In the compilation node of the Web. config file, add:

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

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.