question

Jiroju-1599 avatar image
0 Votes"
Jiroju-1599 asked AlbertKallal-4360 commented

Can we open .exe file in browser from server?

I tried to use server opened exe file on edge, but it doesn't work. Server can't found the path of exe.
Please help me if this is possible to do.
Please guide me how can I implement this.

ms-edgedotnet-aspnet-webforms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you mean have the server side (code behind) launch a .exe on the server, or do you mean have the browser launch a .exe on the CLIENT side?

Launching a .exe on the client side from a browsser? No - that's not going to work or be allowed. If I could launch a exe on YOUR computer from a browser? Well then when you go to view my cat views on my site, I would behind the scene launch a .exe to grab your banking information, outlook contacts and who knows what else!!!

So you really can't launch .exe files from a browser with any much success - it simply a security hole the size of open barn door. You might get some success opening up some trusted locations for the browser - but it is a difficult challenge at best.

Regards,
Albert D. Kallal (Access MVP 2003-2017)
Edmonton, Alberta Canada

0 Votes 0 ·

1 Answer

Deepak-MSFT avatar image
0 Votes"
Deepak-MSFT answered

@Jiroju-1599 ,
I am not sure how actually you had tried to launch the exe file from the Edge browser.
We can launch the 'Exe' file using ActiveX but modern browsers do not support ActiveX due to security reasons.
So if you are directly trying to launch the exe from the Edge browser then it is not going to work.
At present, ActiveX is only supported by the IE browser.
You can try to visit the site in the IE mode in the Edge browser. IE mode supports the Activex.
So in this way you can try to launch the exe from Edge browser.

Example:


65753-242.png



Output:

65734-209.gif

In the above test result, you can notice that the web page is open in IE mode in the Edge browser. It uses the IE browser engine to render the page.

You need to place the exe file on the target machine and you need to provide the local path to that exe file.

Note:

I try to provide you this information for learning purposes. As launching the exe file from the browser can cause security-related issues, I would not suggest you do it on your production site.



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




242.png (8.4 KiB)
209.gif (60.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.