Last post Sep 12, 2016 10:55 AM by mgebhard
Sep 12, 2016 10:07 AM|himajakurapati|LINK
I have asp.net web application, on button click invokes the python based exe dialog window(coded in python)
The above is successful when the dotnet application tested using VS IIS express.
When the same web application code published on IIS 7 & above the invokation of python based exe getting invoked but the dialog window doesnt showup(which will get created through the execution of code in .py file)
Had coded and configured as below:
1. Created web page(.aspx) to fill UI entries
2. On the button click of above #1, class library specific .cs file gets invoked.
3. A method in the .cs file invokes python based exe as per below:
a. Process py = new Process();
py.StartInfo.FileName = ConfigurationManager.AppSettings["ExePath"].ToString();
py.StartInfo.Arguments = serverName + projectFolderPath;
py.StartInfo.UseShellExecute = false;
py.StartInfo.CreateNoWindow = true;
py.StartInfo.RedirectStandardOutput = true;
int retValue = py.ExitCode;
b. IIS 7 & above settings:
1)Enabling and disabling ASP.NET Impersonation.
2)Checked whether MIME type for exe is added or not.
3)In Application pools, Advanced settings Changed the Application Pool Identity to LocalSystem and adding custom account which has administrator permissions.
4)In Application pools, Advanced settings Enable 32-bit applications to True and false.
5)Added the IIS_IUSRS to the binding folder and added the admin id as well.
6)Double-click IIS Admin Service,On the Log On tab, select the Allow Service to Interact with Desktop check box and then Stop and restart the IIS Admin Service.
4. Once the process started, .py file which is part of python based exe will construct the dialog window and shows up
Sep 12, 2016 10:55 AM|mgebhard|LINK
The dialog window will open on the machine where the python code is running. I assume that is a server.
It might have worked on your development system where the system is both the client and the server.