Iis7.0 error on Vista-0x80070021 favorites
Iis7.0 error on Vista HTTP Error 500.19-internal server error, errorCodeIt is 0x80070021, probably because the security settings of iis7.0 are greatly changed compared with the previous version. The iis7.0 security settings file is in % WINDIR % \ system32 \ inetsrv \ config \ applicationhost. config. All WebProgramThe security settings can be overwritten in the web. config of each web program, but they are not allowed by default.
Therefore, first modify the applicationhost. config file and open the permissions of handlers and modules, that is, change deny to allow, as shown below:
View plaincopy to clipboardprint?
<Configuration>
<Configsections>
<Sectiongroup name = "system. webserver">
......
<Section name = "handlers" overridemodedefault = "allow"/>
......
<Section name = "modules" allowdefinition = "machinetoapplication" overridemodedefault = "allow"/>
......
<Configuration>
<Configsections>
<Sectiongroup name = "system. webserver">
......
<Section name = "handlers" overridemodedefault = "allow"/>
......
<Section name = "modules" allowdefinition = "machinetoapplication" overridemodedefault = "allow"/>
......
In addition, if iis7.0 is installed after VS, you need to add iis7.0 support for ASP. NET files. Otherwise, a mime error that is not recognized by the aspx file may occur.