No generated provider registered for extended name.html

Source: Internet
Author: User

The original project was developed with vs2003. after vs2008was successfully converted into a project, some original. html files could not be accessed at runtime (the URL rewriting component was used in the project and a large number of rewrite rules were configured in Web. config). The following error is reported:

"/Vm" Application Program Server error.

There is no generated provider registered for extended name.html. You can register one in the <compilation> <buildproviders> section of machine. config or web. config. Make sure that the registered provider has the buildproviderappliestoattribute that contains the value "Web" or "all.

Note:An error occurred while executing the current Web request. Check the stack trace information to learn about this error andCodeDetailed information about the cause of the error.

Exception details:System. Web. httpexception: No generated provider registered for extended name extension .html. You can register one in the <compilation> <buildproviders> section of machine. config or web. config. Make sure that the registered provider has the buildproviderappliestoattribute that contains the value "Web" or "all.

Source error:

An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.

Stack trace:

[Httpexception (0x80004005): no provider generated for the extended domain name "registration. You can register one in the <compilation> <buildproviders> section of machine. config or web. config. Make sure that the registered provider has the buildproviderappliestoattribute attribute containing the value "Web" or "all".] System. web. compilation. compilationutil. getbuildprovidertypefromextension (compilationsection config, string extension, buildproviderappliesto neededfor, Boolean failifunknown) + 8618547 system. web. compilation. buildmanager. createbuildprovider (virtualpath, buildproviderappliesto neededfor, compilationsection compconfig, icollection referencedassemblies, Boolean failifunknown) + 43 system. web. compilation. buildmanager. compilewebfile (virtualpath) + 252 system. web. compilation. buildmanager. getvpathbuildresultinternal (virtualpath, Boolean nobuild, Boolean allowcrossapp, Boolean allowbuildinprecompile) + 261 system. web. compilation. buildmanager. getvpathbuildresultwithnoassert (httpcontext context, virtualpath, Boolean nobuild, Boolean allowcrossapp, Boolean allowbuildinprecompile) + 101 system. web. compilation. buildmanager. getvpathbuildresult (httpcontext context, virtualpath, Boolean nobuild, Boolean allowcrossapp, Boolean allowbuildinprecompile) + 83 system. web. UI. pageparser. getcompiledpageinstance (virtualpath, string inputfile, httpcontext context) + 224 system. web. UI. pageparser. getcompiledpageinstance (string virtualpath, string inputfile, httpcontext context) + 121 urlrewriter. rewriterfactoryhandler. gethandler (httpcontext context, string requesttype, string URL, string pathtranslated) + 682 system. web. httpapplication. maphttphandler (httpcontext context, string requesttype, virtualpath path, string pathtranslated, Boolean useappconfig) + 193 system. web. maphandlerexecutionstep. system. web. httpapplication. iexecutionstep. execute () + 93 system. web. httpapplication. executestep (iexecutionstep step, Boolean & amp; completedsynchronously) + 155

Version: Microsoft. NET Framework Version: 2.0.50727.3053; ASP. NET version: 2.0.50727.3053

 

 

Baidu once, it was necessary to add a web. config configuration node (the red part is the need to add nodes ):

< Compilation Defaultlanguage = "C #" Debug = "True" >
< Assemblies >
< Add Assembly = "System. Core, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089" />
< Add Assembly = "System. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35" />
< Add Assembly = "System. xml. LINQ, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089" />
< Add Assembly = "System. Data. datasetextensions, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089" />
</ Assemblies >
<! -- Add this section to ensure normal access to the original. html file. -->
<Buildproviders>
<Add extension = ". html" type = "system. Web. Compilation. pagebuildprovider"/>
</Buildproviders>
</ Compilation >

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.