当前位置:论坛首页 > Windows面板 > 求助

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

发表在 Windows面板2017-9-29 23:34 [复制链接] 0 6964

大家好咨询下以下web.config文件 在IIS7.5下伪静态好着  我把网站搬迁到 win2016  IIS10的环境下伪静态不生效了请问 怎么修改呢
<?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>

使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表