HTTP 错误 500.19 - Internal Server Error
无法访问请求的页面,因为该页的相关配置数据无效。
详细错误信息:
模块 | IIS Web Core |
---|---|
通知 | BeginRequest |
处理程序 | 尚未确定 |
错误代码 | 0x800700b7 |
配置错误 | 在唯一密钥属性“name”设置为“ScriptHandlerFactory”时,无法添加类型为“add”的重复集合项 |
因为子站点继承了父站点的web.config
<location path="." allowOverride="true" inheritInChildApplications="false">
/* 在web.config文件中用location 包住 <system.web>
</system.web>
*/
//如果不起作用,用location包住所有带有<add>属性的配置
</location>
例如:system.web、system.webServer、ApplicationConfiguration等带有add属性的配置
location 只需要写一次