c# - Run .exe file from website doesn't working -


i can't figure out why - it's not working! in similar web application project, same code - it's working well, website - nothing!

i tried use kinds of possibilities from: system.diagnostics.

processstartinfo info = new processstartinfo(exepath); info.createnowindow = true; info.useshellexecute = false; process.start(info); 

and tried way using:

response.redirect(filepath); //with , without extension 

and got worked other kinds of extensions (like pdf,html..) never .exe!

one more thing: it's did make small window asked if want save or open current file, file name changed filename.exe to: filename_exe (and then: program want open file question...)

thanks advance!

you can't pass through browser. should have "backdoor" execute it, , backdoor should process have neccesary permissions. solution of problem should create service can accept requests execute file, , invoke himselft. run service on server , send service requests.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -