antoinemartin / django-windows-tools

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

500 Error "The FastCGI process exited unexpectedly" #8

Closed ghost closed 9 years ago

ghost commented 11 years ago

Just started using django-windows-tools. My project works fine with Django development server (python manage.py runserver). After running 'python manage.py collectstatic', I create the fgci app with 'python manage.py winfcgi_install --binding=http://localhost:80' (as Administrator). When I try to access any page (e.g. http://localhost/) via browser, I get a Server Error, 500.0, "The FastCGI process exited unexpectedly". Info from the error page: Detailed Error Information Module FastCgiModule Notification ExecuteRequestHandler Handler FastCGI Error Code 0x00000001 Requested URL http://localhost:80/ Physical Path c:\myprojectdir Logon Method Anonymous Logon User Anonymous

The error page also mentions: Most likely causes: IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. IIS was not able to process configuration for the Web site or application. The authenticated user does not have permission to use this DLL. The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

I am running with virtualenv (looks like the script processor for fgci is correctly set to the virtualenv's path/.exe).

SyRenity commented 11 years ago

Have same issue here, anyone managed to sort it out?

SyRenity commented 10 years ago

Thanks, I figured out after quite some head/wall contact :), and giving now application pool rights to the directory.

On Fri, Oct 18, 2013 at 12:13 AM, Flavio Duarte notifications@github.comwrote:

Hello, I get this error too. Try to give permission to access your django app folder. It worked for me.

— Reply to this email directly or view it on GitHubhttps://github.com/antoinemartin/django-windows-tools/issues/8#issuecomment-26553536 .