zoukankan      html  css  js  c++  java
  • IIS7.0在Vista上的错误 0x80070021

    IIS7.0在Vista上的错误 - 0x80070021 收藏
    IIS7.0在Vista上的错误HTTP Error 500.19 - Internal Server Error ,错误代码为0x80070021 ,大概原因为IIS7.0的安全设定相比前版本有很大的变更。IIS7.0的安全设置文件在%windir%\system32\inetsrv\config\applicationHost.config,这里定义所有Web程序的安全设置,在各个Web程序的web.config可以去覆盖这些设置,但默认情况下是不容许覆盖的。

    所以首先修改applicationHost.config文件,打开handlers和modules的权限,即由Deny改为Allow,如下:

    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" />
       ......

    另外如果IIS7.0是在VS安装之后安装的话,那么需要添加IIS7.0对ASP.NET文件的支持,否则会出现aspx文件无法识别的MIME错误。

  • 相关阅读:
    mongoid和date_select的交道 小青年
    content_for对应的yield 小青年
    sunspot solr 小青年
    rails中validates及各种方法 小青年
    Rake: wrong number of arguments (3 for 2) 小青年
    nginx + nginxgridfs 安装方法 小青年
    gem install mysql2的时候出现的错误 小青年
    Rails Date Formats strftime 小青年
    redis 安装 小青年
    Uninstall all ruby gems 小青年
  • 原文地址:https://www.cnblogs.com/studio313/p/1690007.html
Copyright © 2011-2022 走看看