I have followed all the steps as per the azure website. I can see the python 3.6 version running on Azure. I have installed the python 3.6 extension and added a proper web.config file. When I try to open my URL I am getting the below error
http://myuniqueappname114.azurewebsites.net/
Any idea how to fix this error pls
Generally, the issue was caused by your
web.config
file configured incorrectly to not start up your flask app from IIS.Here is my case for deploying flask
Hello World
app on Azure Website, which you can refer to to check your deployment whether be correct.python364x86
underD:\home
. Maybe yours installed ispython364x64
.pip install flask
in the pathD:\home\python364x86
via Kudo console.wwwroot
as the figure below via commandtree /F /A
.The
__init__.py
file content is like the Flask officalHello
demo.My
web.config
file content is as below, notepython364x86
I used in the propertyscriptProcessor
of tagsystem.webServer > handles > add
at here.Then the demo app works.
If your case is different from mine, please post your
web.config
file content and other necessary info to help fixing up your issue.