Hello,
Trying to deploy a totally default django project through IIS with HttpPlatformHandler though this tutorial: Running Django Web Apps on IIS with HttpPlatformHandler | Half-Blood Programmer. Currently it just loads forever without an error, but when looking at the Event Viewer I’m getting several errors:
- Could not create stdoutLogFile D:\apps\mysite\logs\python.log_20250722162931_18580.log, ErrorCode = ‘0x80070005’.
- Application ‘/LM/W3SVC/3/ROOT’ with physical root 'D:\apps\mysite' failed to start process with commandline ‘“” manage.py runserver %HTTP_PLATFORM_PORT%’ at stage ‘PostStartCheck’, ErrorCode = ‘0x8027025a’, assigned port 36562, retryCounter ‘1’.
- Application ‘/LM/W3SVC/3/ROOT’ with physical root 'D:\apps\mysite' failed to start process with commandline ‘“” manage.py runserver %HTTP_PLATFORM_PORT%’ at stage ‘PostStartCheck’, ErrorCode = ‘0x8027025a’, assigned port 19990, retryCounter ‘0’.
- Application ‘/LM/W3SVC/3/ROOT’ with physical root 'D:\apps\mysite' failed to start process with commandline ‘“” manage.py runserver %HTTP_PLATFORM_PORT%’ with multiple retries. Failed to bind to port ‘19990’. First 30KB characters of captured stdout and stderr logs from multiple retries:
The user assigned to run the python through IIS has permission to write to the log folder but I don’t understand why it is not.