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
1
vote
1 answer

Can not install "wfastcgi 2.1 gateway for iis and python 2.7.9" in IIS

I have a error installing "wfastcgi 2.1 gateway for iis and python 2.7.9" in IIS, to deploy an app django in windows 10. I can not download the installer (see the image). enter image description here Please, have someone the installer? Thanks in…
MAXI1693
  • 61
  • 1
  • 5
1
vote
1 answer

plotly-dash on iis with flask and wfastcgi

I've configured IIS with python and wfastcgi.py, getting it working, mostly. When trying with simple stuff, it returns the expected content. My issue now is with getting flask and plotly/dash working under IIS, using attribute routing. My web.config…
Kim Ipsen
  • 13
  • 4
1
vote
1 answer

IIS incorrectly decodes URLs containing characters outside the system locale

It seems that IIS incorrectly delivers the request URL to a web application if the URL contains UTF-8 encoded characters, which are not supported by the current system locale. All "unsupported" characters are replaced by question marks…
Florian Winter
  • 4,750
  • 1
  • 44
  • 69
0
votes
0 answers

wfastcgi.py on IIS 10 closing because of empty data on cgi record

I'm trying to migrate a python backend application from IIS 8.5 to IIS 10 in a new server. While in the old server the application works just fine, in the new one it is getting a 500 error. I tried to debug the issue and it seems that wfastcgi exit…
Cesar
  • 1
  • 1
0
votes
0 answers

Flask IIS error ModuleNotFoundError: No module named 'markupsafe'

I have created a simple python code to test Flask and IIS as follows: from flask import Flask def create_app(): app = Flask(__name__) @app.route("/") def hello_world(): return "

Hello, World!

" return app I have…
Calango
  • 155
  • 2
  • 15
0
votes
0 answers

Django threading behind IIS and wfastcgi

I have a Django application that executes a lengthy task, that is controlled by Ajax on one of the app's pages. The first Ajax call creates an entry in a task table in the db, and then creates a thread that executes that task, by calling a Java app…
langlais
  • 21
  • 3
0
votes
1 answer

Flask app deployed on IIS fails to handle unicode in URL

I have a Flask app with a route defined like this: @app.route("/api/") def foo(value): ... On my local machine, using Flask development server, everything works correctly. But on production, where the app is deployed on IIS using…
isshp
  • 292
  • 2
  • 9
0
votes
0 answers

What are possible reasons for 'OSError: [Errno 22] Invalid argument' in wfastcgi.py while running Python Flask app on IIS 10 web service?

What causes Unhandled exception in wfastcgi.py: Traceback (most recent call last) in python flask app +IIS... I' m creating a web app with Python flask and IIS 10 web service on windows server 2022. I have problem in the wfastcgi log file that is…
Nayan
  • 9
  • 4
0
votes
0 answers

Error in deployment of Panel Dashboard(Python) on IIS server using Fast CGI

Error occurred while reading WSGI handler: Traceback (most recent call last):File "C:\ProgramData\Anaconda3\envs\Dashboard\lib\site-packages\wfastcgi.py", line 791, in mainenv, handler = read_wsgi_handler(response.physical_path)File…
0
votes
0 answers

Deploy Python Dash on IIS Server (Python Version??)

I'm aware that the Python version must be the same as the python dash before deploying dash on the IIS Server. dash version is currently 2.7.0 Python version is currently 3.10.6 Do I need to downgrade the python version? If so, which version do I…
0
votes
0 answers

Flask Invalidates Login Session on most page requests

I have a Flask App deployed on IIS using FastCGI. After logging in, I'm successfully redirected to homepage with the user information displayed. Both the Session & Remember_Token are also created. The configuration I have for Flask-Login cookie and…
0
votes
0 answers

wfastcgi 500 error in flask app when trying to plot

Edit: Originally thought this was IIS issue, but looks like it's FastCgiModule causing the issue. To be clear, the WebApp itself works, it only fails when I choose "Image Test" from the dropdown (see code below) menu on the site. Specifically, it…
David Yang
  • 2,101
  • 13
  • 28
  • 46
0
votes
1 answer

Error occurred while reading WSGI handler (Flask, Pymongo)

I have developed a web application with Flask that connects to a MongoDB database. Now that I have tried deploying to a Windows IIS environment. I have received an error when I display the application in the browser. Here I indicate in the image the…
Pool Nolasco
  • 93
  • 1
  • 6
0
votes
1 answer

Multiple Django Projects using IIS but Getting Blank Page on Second Site

I'm running two django projects in IIS with wfastcgi enabled. The first django project is running without an issue but the second project displays a blank page (code 200) returned. Second Project Info: A virtual folder, within it's own application…
Jelani
  • 705
  • 6
  • 25
0
votes
1 answer

Python. flask, wfastCGI, and IIS - Very short url length limit (or something)

I'm using Python 3.10.4 and Flask on a Windows 2016 Server with IIS and wfastCGI. I stripped down my Python script to bare minimum for testing: from flask import Flask, request, abort, render_template from functools import wraps app =…
mannaggia
  • 213
  • 1
  • 9