django部署在iis下,webconfig错误
错误原因:
iis7以后,
web.config管理机制更安全了
默认情况下,会锁住配置项,
不许修改
怎么办?


如何求解以上问题呢?
D:django_websiteshello>%windir%
'C:Windows' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:django_websiteshello>%path%
'C:Windowssystem32' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:django_websiteshello>%windir%system32inetsrvappcmd unlock config -section:system.webServer/handlers
在配置路径“MACHINE/WEBROOT/APPHOST”解除了“system.webServer/handlers”节的锁定。
D:django_websiteshello>%windir%system32inetsrvappcmd unlock config -section:system.webServer/modules
在配置路径“MACHINE/WEBROOT/APPHOST”解除了“system.webServer/modules”节的锁定。
解除了以后,完美解决了问题。
感谢网络。