Can I host my dotnet winform application to azure app service?

shiwani upadhyay 20 Reputation points
2023-08-24T20:36:30.2233333+00:00

I have my winform application created in Visual studio 2022.

I am trying to publish it to azure app service. I successfully deployed and published it but when I access the url it shows nothing on the page but message "Your web app is running and waiting for your content".

Is it possible to host winform application to azure app service?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
0 comments No comments
{count} votes

Accepted answer
  1. Johan Smarius 465 Reputation points MVP
    2023-08-26T16:02:26.1166667+00:00

    App Services are for web applications only. Depending on your solution you could host an API as an app service for your Windows application. The Windows Application itself cannot be hosted as an app service. If your solution is required to be a Windows Application, you could try hosting it as an Azure Virtual Machine and use a remote desktop to connect to the VM. However, if you have the freedom to migrate the solution, you could consider migrating the frontend part to Blazor. In the long run, and of course, depending on the number of users for your application, this can be more cost-effective.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. TP 83,971 Reputation points
    2023-08-24T21:56:18.6866667+00:00

    Hi Shiwani,

    No, it is not possible to host winforms application on Azure App Service.

    Azure Virtual Desktop is the service for hosting windows applications.

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP

    1 person found this answer helpful.
    0 comments No comments