首页 > 解决方案 > IIS 中无法识别的属性“xdt:Transform”

问题描述

我在 IIS 中托管了一个 Web 应用程序,下面是该应用程序的 web.config 文件,但是当我打开应用程序时,出现以下错误Unrecognized attribute 'xdt:Transform'

`<?xml version="1.0" ?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <system.webServer xdt:Transform="InsertIfMissing">
        <rewrite xdt:Transform="InsertIfMissing">
            <rules xdt:Transform="InsertIfMissing">
              <rule name="index.html" stopProcessing="true">
                <match url=".*" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                  <add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="true" negate="true" />
                </conditions>
                <action type="Rewrite" url="index.html" />
              </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>`

    

标签: webiis

解决方案


推荐阅读