Answered by:
Dotnet web Application launching python based exe dialog window successful on IIS express and not successful on IIS 7 and above

Question
-
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;
py.Start();
py.WaitForExit();
int retValue = py.ExitCode;
return retValue;
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- Moved by Sara LiuMicrosoft contingent staff Tuesday, September 13, 2016 6:08 AM
Monday, September 12, 2016 4:20 AM
Answers
-
Hi Himaja,
Welcome to the MSDN forum.
According to your description, your issue is more related to the asp.net and python. Since our forum is to discuss the .NET Framework Setup and Servicing, it looks like you can try to open a new thread on this forum: http://forums.asp.net/1098.aspx for dedicated information.
Meanwhile, to find a better support forum for your issue, I will move your thread to this forum: https://social.msdn.microsoft.com/Forums/en-US/home?forum=whatforum and they will help you to confirm the appropriate forum, thank you for your understanding.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.
- Proposed as answer by Dave PatrickMVP Tuesday, September 13, 2016 10:46 AM
- Marked as answer by Dave PatrickMVP Monday, September 26, 2016 12:18 AM
Tuesday, September 13, 2016 6:07 AM -
I'd agree, ask in asp.net forums or possibly over here for IIS issues.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Mike Laughlin Tuesday, September 13, 2016 12:03 PM
- Marked as answer by Dave PatrickMVP Monday, September 26, 2016 12:18 AM
Tuesday, September 13, 2016 10:42 AM
All replies
-
Hi Himaja,
Welcome to the MSDN forum.
According to your description, your issue is more related to the asp.net and python. Since our forum is to discuss the .NET Framework Setup and Servicing, it looks like you can try to open a new thread on this forum: http://forums.asp.net/1098.aspx for dedicated information.
Meanwhile, to find a better support forum for your issue, I will move your thread to this forum: https://social.msdn.microsoft.com/Forums/en-US/home?forum=whatforum and they will help you to confirm the appropriate forum, thank you for your understanding.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.
- Proposed as answer by Dave PatrickMVP Tuesday, September 13, 2016 10:46 AM
- Marked as answer by Dave PatrickMVP Monday, September 26, 2016 12:18 AM
Tuesday, September 13, 2016 6:07 AM -
I'd agree, ask in asp.net forums or possibly over here for IIS issues.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Mike Laughlin Tuesday, September 13, 2016 12:03 PM
- Marked as answer by Dave PatrickMVP Monday, September 26, 2016 12:18 AM
Tuesday, September 13, 2016 10:42 AM