RaviKant Hudda RaviKant Hudda - 1 year ago 91
ASP.NET (C#) Question

How to allow user to download file from asp.net?

I am having problem in asp.net. Actually I am letting my website's visitor to install an window application from that web site. I have added my application without creating installer so it is just an .exe file which is showing a normal form. But the problem is when user tries to download that file an error message is being shown that says that "This file can harm your computer. Do you want to keep this file anyway?" So I don't want to display that message. can you please help me out. Thanks in advance.

Answer Source

This is neither a "problem" of ASP.NET nor the WinForms application. This is a thing that modern browsers do when you download an application or document that might contain (potentially malicious) executable parts. If there was a "this thing won't harm anybody"-flag for downloads, do you think that this would only be set by "nice" developers?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download