antoinemartin / django-windows-tools

Django application providing management commands to host Django projects in Windows environments
BSD 2-Clause "Simplified" License
50 stars 13 forks source link

CommandError: It seems that The CGI module is not installed #3

Closed honi closed 8 years ago

honi commented 11 years ago

I have enabled CGI support following these instructions: http://www.iis.net/configreference/system.webserver/cgi

Running on Windows 7 Ultimate 64bits.

When running winfcgi_install command I get the error: CommandError: It seems that The CGI module is not installed

Not sure how to fix this, as the CGI module is actually installed, I can see it in the IIS Manager.

honi commented 11 years ago

Looking at the source, found where this message originated from and manually ran the command that was producing the "error": c:\windows\system32\inetsrv\appcmd.exe list config

Which gave me the following error: Cannot read configuration file due to insufficient permissions.

I know the docs said I had to run the command with admin privileges, but since I'm not a daily windows user, I thought that if my user is an admin, then I didn't have to do anything special. Wrong...

The solution was to open the command prompt with right click > Run as administrator.

Maybe it would be nice to output a more helpful error message.

mrbean-bremen commented 8 years ago

Closing this after enhancing the error message as proposed.