I have a controller with a method for downloading file. Without code, all I need is to go to this link:
http://localhost:1186/Content/MyFolder/file1.exe
and the file gets downloaded.
I tried to do this with code like this:
Response.Redirect(Server.MapPath("~\\Content\\MyFolder\\file1.exe"));
But the breakpoint passes through this line and nothing happens. I think the problem is I'm using Server.MapPath, but how else would I do this?