IIS7/8 HTTP Error 500.19 Error 0x80070021

This article describes solutions to the following problems

 

Error HTTP Error 500.19 - Internal Server Error for IIS7.0/8.0 with error code 0x80070021.

method/step

 
  1.  

    write in front

     

    This error can occur for several reasons, this article describes two of them and their solutions. If this article does not solve your problem, please look for other solutions.

  2.  

    Solution one

     

    If IIS7.0 is installed after VS installation, then you need to add IIS7.0 support for ASP.NET files, otherwise there will be a MIME error that the aspx file cannot be recognized, or the above problems.

    Method: Open and close system functions---"Internet Information Services---"World Wide Web Services---"Application Development Functions---"Check asp.net.

  3.  

    Solution two

     

    The security settings file of IIS7.0 is in %windir%\system32\inetsrv\config\applicationHost.config, which defines the global security settings of the server, but the web.config of the Web program can implement some of its configurations. Overrides are not allowed by default.

    So first modify the applicationHost.config file, so that the web program can override the global security configuration of the server, open the permissions of handlers and modules, that is, change from Deny to Allow, as follows:

    <section name="handlers" overrideModeDefault="Allow" />

    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324750146&siteId=291194637