We have a .NET executable that we are hosting on a web server. The domain for the web server is set as a "Trusted Site" on the user's IE.
When the user left clicks the link for the executable, it blows up with the error: "Microsoft IE Execute shell has encountered a problem and needs to close". From what I have read, it is because IE is trying to execute the file directly using ieexec.exe.
What is desired, is the user should get a pop-up box with a security warning asking them if they want to download the .exe, and buttons "Run" "Save" "Cancel". Not a cryptic security exception. The workaround is to right-click and click on "Save Target As..".
Of course, this only blows up in IE, not Firefox or Chrome.
How can I compile the .NET executable to bypass this ieexec.exe and force the file download prompt?