2

在尝试运行“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,但没有成功。

4

2 回答 2

0
wfastcgi-disable

并执行这个

wfastcgi-enable
于 2021-12-06T14:46:19.667 回答
0

你能告诉你在设置文件中做了什么更改吗?抱歉,我不得不将此作为答案发布,因为我还没有评论权。

于 2021-10-26T07:24:25.653 回答