I'm using EXE files for the back end of an in-house website. I have server 2019 and IIS 10. When I call the EXE file IIS tries to download the file instead of executing it.
I'm calling like this:
$.ajax({
url: "cgi-bin/compPack.exe",
dataType: "json",
type: "post",
data: dataString,
error: ajaxError,
success: function(json){
Which gives an error because it's expecting a JSON string, and if I enter
sandbox/cgi-bin/myProgram.exe
in the browser it just downloads the EXE.
I've added the CGI module, set permissions on the CGI-BIN folder, tried adding and and removing .exe from Mime types as application/octet-stream but can't get it to run the binary file.
I'm not sure what I need to do to make it execute (any) EXE file in the cgi-bin folder.