web - 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>`
解决方案
推荐阅读
- typo3-8.x - TYPO3 扩展 flexform 找不到文件
- javascript - 使用 Angular 2/4 显示下拉默认值
- python - 由于哪个 pip 指向其他版本,我应该如何删除多个 python 版本?
- sql-server - SQL 服务器中的字符串或二进制数据将被截断错误。如何知道抛出此错误的列名
- android - 如何了解锂离子或其他电池技术?
- c++ - 数组、对象、类来组织具有多项选择和真/假问题的测试问卷程序
- python - 在python中对数据框中的列求和
- apache-kafka - 如何从 KSQL 中的单个主题创建不同的表?
- windows - 在 windows openvpn 服务器上设置身份验证用户密码
- windows - 是否可以通过 pgAgent 在 Windows 中运行 .exe?