How to start .exe file

Penyo 21 Reputation points
2022-01-21T16:32:12.013+00:00

Hello, on 11/18/2021 I registered and uploaded a site in Microsoft Azure. The files are uploaded via FileZilla. The idea is to run a .exe file by visiting the site. When I load the site into Visual Studio with local hosting, everything is fine. But when I try to visit the url of the site, the .exe file does not start. I need help. I wonder if the problem is in my Support plans (basic or developer).

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Bruce Zhang-MSFT 3,736 Reputation points
    2022-01-24T07:16:39.71+00:00

    Hi @Penyo ,

    IIS is different from IIS Express in Visual Studio. When you try to visit site on IIS and let it run .exe file, it is actually the application pool that starts and runs the .exe file. So you need to make sure that application pool identity has full control permission to .exe file.

    The easiest way is setting application pool identity to administrator. If you worry about security issue, go to directory(which store .exe file) properties, in Security tab add the IIS AppPool\app pool name and set it full control permission.
    167714-1.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang


1 additional answer

Sort by: Most helpful
  1. Philippe Levesque 5,691 Reputation points MVP
    2022-01-21T16:40:32.247+00:00

    Hi

    Is the .exe a CGI program ? You need to configure IIS to execute the .exe, and it will output the data associated with it. (printf(), stdout(), etc... will be output'ed to the website)