In my website I am using System.Diagnostics.Process.Start to preview a particular file. It is working fine on the local server but, it throws ThreadAbortException on the online server when I try to preview the file.
The preview of the happens on button click of repeater. The code is given below:
if (e.CommandName == "Preview")
{
Button btn = (Button)e.CommandSource;
string filePath = Server.MapPath("~/Upload");
string _DownloadableProductFileName = filename;
System.Diagnostics.Process.Start(filePath + "\\" + _DownloadableProductFileName);
}