在唯一密钥属性“value”设置为“index.php”(或者index.asp等)时,无法添加类型为“add”的重复集合项
IIS服务器添加网站后提示在唯一密钥属性“value”设置为“index.php”(或者index.asp等)时,无法添加类型为“add”的重复集合项
找到网站当前目录->web.config文件
在flies标签中添加
<clear />
<add value="index.php" />
<add value="Default.htm" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
例如:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="Default.htm" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
即可