Kevin Marois wrote:Process.Start(fileData);
That's not doing what you think it's doing.
The code is writing to a file on the server, and then attempting to open the file on the server. It appears to work when you run it from Visual Studio, but that's just because the server and the client happen to be the same computer in that instance.
As soon as you deploy your code to a real server, you'll either get an exception indicating that there's no application associated with the file type; or the file will open on the server, where nobody will ever see it.
If you want to send the data back to the client, you'll need to send it via a
public ActionResult Export()
var data = _dal.GetDashboardInfos(new DashboardInfoQueryArgs());
string content = data.ToList().ToCsv();
byte bytes = Encoding.UTF8.GetBytes(content);
var result = new FileContentResult(bytes, "text/plain");
result.FileDownloadName = "ardexport.csv";
Unfortunately, this means you can't return a file and redirect. This is a limitation of how the web works - a single request can only generate a single response.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."