在尝试运行“wfastcgi-enable”以在 IIS 上部署我的 Django 代码时,它显示此错误:
ERROR ( message:New application object missing required attributes. Cannot add duplicate collection entry of type 'application' with combined key attributes 'fullPath, arguments' respectively set to 'C:\Users\paritosh\AppData\Local\Programs\Python\Python39\python.exe, C:\Users\paritosh\AppData\Local\Programs\Python\Python39\lib\site-packages\wfastcgi.py'
. )
An error occurred running the command:
['C:\\Windows\\system32\\inetsrv\\appcmd.exe', 'set', 'config', '/section:system.webServer/fastCGI', "/+[fullPath='C:\\Users\\paritosh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', arguments='C:\\Users\\paritosh\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\wfastcgi.py', signalBeforeTerminateSeconds='30']"]
Ensure your user has sufficient privileges and try again.
我也尝试在管理员模式下运行 CMD,但没有成功。