I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following:
Have a webpage with a button, when pressed, it will launch a webpage that runs a server side exe (eg, notepad.exe or ribbons.scr), while at the same time run the same exe on the local client pc.
For my attached source files, i dont know why the index.cshtml doesnt show a button. Also disappointingly the notepad.exe did not run even when i set it to have security permissions so let everyone have all rights. im a little confused why there were 2 web.config files, and the IIS interface didnt seem to match the web.config settings, and also i dont understand why the visual studio code will launch the site with a certain port number, while your previous discussion 13 years ago suggested to use the session state to run at a different port.
Thank you for reading!
lennyli 50 Newbie Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
lennyli commented: i guess for local app launch it can be done via javascript inside the html? +0
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
rproffitt commented: Thanks for being clear on this issue. +17
rproffitt 2,701 https://5calls.org Moderator
lennyli 50 Newbie Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
lennyli 50 Newbie Poster
lennyli 50 Newbie Poster
rproffitt commented: Until you understand that you can't launch .exe's on my PC from a web page, we have to wait for you to catch up. +17
john_111 88 Junior Poster in Training
Salem 5,248 Posting Sage
Reverend Jim 5,224 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Neil_brown001 0 634538
lennyli 50 Newbie Poster
gediminas.bukauskas.7 6 Newbie Poster
lennyli 50 Newbie Poster
rproffitt commented: "IIS" is a web server. And again a browser will not launch notepad.exe +17
gediminas.bukauskas.7 commented: You need to update IIS security settings, enable CGI mode. These operations will allow to run EXE on machine where IIS is installed. +0
Salem 5,248 Posting Sage
lennyli 50 Newbie Poster
lennyli 50 Newbie Poster
Salem commented: Good job! +16
Salem 5,248 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.