UnhandledException: System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
皆さんこんにちは、
Process.Start を使用して .csv ファイルを開こうとすると、テストしているマシンで次の例外が発生します。このボックスの .csv ファイルにファイルの関連付けが設定されていないため、これが発生していると思います。
では、どうすればこの状況を回避できるでしょうか。
Process.Start を強制的にメモ帳で開きますか? - 理想的には Excel で開く必要がありますが、そのコンピューターに Excel が存在しない場合はどうしますか?
ありがとう