首页 > 解决方案 > “wfastcgi-enable”显示“确保您的用户有足够的权限并重试。” 如何解决这个问题?

问题描述

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

标签: iisweb-configiis-8fastcgiwfastcgi

解决方案


wfastcgi-disable

并执行这个

wfastcgi-enable

推荐阅读