私の Web サイトでは、System.Diagnostics.Process.Start を使用して特定のファイルをプレビューしています。ローカル サーバーでは正常に動作していますが、ファイルをプレビューしようとすると、オンライン サーバーで ThreadAbortException がスローされます。
リピーターのボタンをクリックするとプレビューが表示されます。コードを以下に示します。
if (e.CommandName == "Preview")
{
Button btn = (Button)e.CommandSource;
string filePath = Server.MapPath("~/Upload");
string _DownloadableProductFileName = filename;
System.Diagnostics.Process.Start(filePath + "\\" + _DownloadableProductFileName);
}