sunle 发表于 2017-9-29 23:34:24

IIS7.5下web.config文件放到IIS10 下伪静态无法生效怎么解决呢

大家好咨询下以下web.config文件 在IIS7.5下伪静态好着我把网站搬迁到 win2016IIS10的环境下伪静态不生效了请问 怎么修改呢
<?xml version="1.0"?>
<!--
    注意: 除了手动编辑此文件,还可用
    Web 管理工具配置应用程序设置。可使用
    Visual Studio 中的“网站”->“Asp.Net 配置”选项。
    所有设置和注释都列在
    machine.config.comments 中,该文件通常位于
    \Windows\Microsoft.Net\Framework\vx.x\Config 中
-->
<configuration>
    <appSettings>
      <add key="AccessProvider" value="provider=microsoft.jet.oledb.4.0;data source="/>
      <add key="AccessDbPath" value="~/app_data/wjdhcmsdb.mdb"/>
    </appSettings>
    <connectionStrings/>

    <system.webServer>
      <!-- Modules for IIS 7.0 Integrated mode -->
      <!--<modules runAllManagedModulesForAllRequests="true">-->
      <modules>
            <add name="HttpModule" type="UrlWrite,WJDHCMS"/>
      </modules>
      <!-- Disable detection of IIS 6.0 / Classic mode ASP.NET configuration -->
      <validation validateIntegratedModeConfiguration="false" />
    </system.webServer>

    <system.web>
      <!-- Modules for IIS 6.0-->
      <httpModules>
            <add name="HttpModule" type="UrlWrite,WJDHCMS"/>
      </httpModules>
      <!--
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会
            影响性能,因此请仅在开发过程中将此值
            设置为 true。
    -->
      <compilation debug="true" targetFramework="4.0"/>
      <!--
          通过 <authentication> 节,可配置
      ASP.NET 用于识别进入用户的
      安全身份验证模式。
    -->
      <authentication mode="Windows"/>
      <!--
         通过 <customErrors> 节,可以配置
       在执行请求的过程中出现未处理的错误时要执行
       的操作。具体而言,
       开发人员通过该节可配置要显示的 html 错误页,
       以代替错误堆栈跟踪。
    -->
      <customErrors mode="RemoteOnly" defaultRedirect="/error.html">
            <error statusCode="404" redirect="/404.html"/>
      </customErrors>
      <pages validateRequest="false" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID">
            <namespaces>
                <!--<add namespace="CMS"/>-->
                <add namespace="System.Data"/>
                <add namespace="System.Data.OleDb"/>
            </namespaces>
      </pages>

      <httpRuntime requestValidationMode="2.0"/>
    </system.web>
    <!--
      system.webServer 节是在 Internet Information Services 7.0 下运行 ASP.NET AJAX
      所必需的。对于早期版本的 IIS,不必保留此节。
-->
</configuration>

页: [1]
查看完整版本: IIS7.5下web.config文件放到IIS10 下伪静态无法生效怎么解决呢