Web 无法识别的属性';xdt:Transform';在IIS中

Web 无法识别的属性';xdt:Transform';在IIS中,web,iis,Web,Iis,我在IIS中托管了一个web应用程序,下面是该应用程序的web.config文件,但当我打开该应用程序时,发现以下错误无法识别的属性“xdt:Transform” `<?xml version="1.0" ?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <system.webServer xdt:Tra

我在IIS中托管了一个web应用程序,下面是该应用程序的web.config文件,但当我打开该应用程序时,发现以下错误无法识别的属性“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>`

    
`
`

这些属性应该在转换过程中被删除,并且不会出现在部署中的最终
web.config
文件中。您可以在本地正常工作吗?或者只有在IIS上托管时才会遇到此错误?