Deploying Streamlit App with IIS Server

I am trying to deploy a streamlit app on a VDI run on ec2. I have gone through a lot of posts for hosting streamlit through IIS but none of them have worked for me. I am either getting a blank screen which loads infinitely or an error :“Session state does not function when running a script without streamlit run”. Even tried deploying with a python wrapper but got the same error. Is there a way to deploy the app without using a reverse proxy?

Looking for step-by-step instructions from scratch or useful tips. Any suggestion to properly deploy the app for a private env is highly appreciated. Open to explore any other way of deployment except Streamlit Community Cloud/Snowflake.

Python version: 3.13.0
Streamlit version: 1.40.2
Windows server 2022

Thanks in advance.