Questions tagged [wfastcgi]

wfastcgi.py provides a bridge between IIS and Python using WSGI and FastCGI, similar to what mod_python provides for Apache HTTP Server. It can be used with any Python web application or framework that supports WSGI, and provides an efficient way to handle requests and process pools through IIS.

Microsoft developed this component as part of the Python extensions for Azure App Service on Windows initially.

Note that Microsoft has deprecated the Python extensions, so you should switch to Linux.

https://learn.microsoft.com/en-us/visualstudio/python/managing-python-on-azure-app-service?view=vs-2017

Important

Microsoft has deprecated the Python extensions for App Service on Windows as described in this article in favor of a direct deployment to App Service on Linux.

81 questions
6
votes
4 answers

python.exe - The FastCGI process exited unexpectedly

I have read all posts about this issue, here and on IIS forum, got it to the second page on Google too... and still can't get it to work. I want to run Flask/Python app in IIS on Windows server 2016, but I keep getting this error: HTTP Error 500.0 -…
midlll
  • 63
  • 1
  • 1
  • 5
6
votes
1 answer

How to host Python 3.7 flask application on Windows Server?

As wfastcgi module is not compatible with Python 3.7, What is the best way to host a python flask application on a Windows Server?
Ishan
  • 81
  • 1
  • 1
  • 5
5
votes
0 answers

Why does wfastcgi error out on sys.stdin.detach().read(8)?

I deployed a website using Azure Web Apps service, which is going to be mainly used as an API. The problem is that wfastcgi every so often throws out an error and the website goes down. The problem is that starting it back up takes a while, because…
Johny
  • 101
  • 6
5
votes
1 answer

Web Platform Installer: Python Installer - Downloaded file failed signature verification and may have been tampered with

I'm trying to install WFastCGI 2.1 Gateway for IIS and Python 3.4 via the Web Platform Installer in Microsoft Server Manager's IIS Manager. Python Installer fails with the error: "This product did not install successfully: Downloaded file failed…
user3753722
  • 153
  • 2
  • 11
4
votes
3 answers

"wfastcgi-enable" showing "Ensure your user has sufficient privileges and try again." How to resolve this?

While trying to run "wfastcgi-enable" to deploy my Django code on IIS, it's showing this error: ERROR ( message:New application object missing required attributes. Cannot add duplicate collection entry of type 'application' with combined key…
3
votes
1 answer

What causes Unhandled exception in wfastcgi.py: Traceback (most recent call last) in Django +IIS

I' m creating a web app with Django and IIS 10 web service on windows server 2019. I have problem in the wfastcgi log file that is configured in web.config. The content of the log: 2021-12-10 16:26:35.568572: Unhandled exception in wfastcgi.py:…
3
votes
1 answer

How can I show error logs from Flask running on IIS?

I've read just about everything I can find on this and I've hit a brick wall. I've setup error logging to work when running on localhost, but when I run it on a production server (IIS), no log file is created, nor is the email report sent. The…
lc-51
  • 99
  • 2
  • 7
3
votes
4 answers

Error 500 while running a Python Flask application on IIS. How to get the actual error

I try to get a Flask application running on an IIS on windows. The reason is to get single-sign-on with windows authentication done using the IIS mechanisms. I got it running on my development machine. But it doesn't work in the actual production…
Juergen Gutsch
  • 1,774
  • 2
  • 17
  • 28
3
votes
0 answers

Deploying django on azure - scriptprocessor could not be found

I am having some trouble setting up my website on Azure. My website is developed using Django and I am using wfastcgi to run it on the server; but the server keeps giving an error that says, "scriptProcessor could not be found in application…
Ashwin Ramaswami
  • 873
  • 13
  • 22
2
votes
2 answers

wFastCGI / Flask - Restarting webserver on IIS

I'm building a Web-App that is fetching data from an API and displaying it. For that im using Flask and the request library. Because the API is not well layed out, i need to make a bunch of API calls to get all the data i need. Here is how the…
LiiVion
  • 312
  • 1
  • 10
2
votes
1 answer

wfastcgi-enable it show 'Ensure your user has sufficient privileges and try again.'

I want to deploy my django website in window server 2008 by follow this tutorial https://www.youtube.com/watch?v=CpFU16KrJcQ&t=191s In step wfastcgi-enable it show message like this. command prompt Microsoft Windows [Version 6.0.6002] Copyright (c)…
2
votes
1 answer

Deploying Python Flask Application on IIS with wfastcgi in Python 3.7+ with Numpy, Pandas, etc

When deploying a python 3.7+ flask or Dash application on IIS using wfastcgi, there are many great tutorials to get a hello work program working such…
Andrew
  • 163
  • 8
2
votes
1 answer

Serve static files with IIS and Django

I'm getting an error when trying to serve static file on IIS using FastCGI with Django==2.2.5 and python==3.7.4 my settings.py static code STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') I'm using wfastcgi version 3.0.0 and…
Qais Bsharat
  • 146
  • 3
  • 12
2
votes
2 answers

Flask, IIS, Python, wfastcgi Error occurred while reading WSGI handler: ImportError: cannot import name 'Flask'

My problem is that I'm trying to deploy a simple flask app.py : from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello from FastCGI via IIS!" if __name__ == "__main__": app.run() with that web.config:
2
votes
0 answers

Flask on IIS - Configuration settings

I am new to Python but I am finding it extremely interesting. Coming from a .NET environment, I need to host a Flask application on IIS. I did manage to host the application but I still cannot seem to wrap my head around some settings one needs to…
1
2 3 4 5 6