The MVC application am developing has feature to upload/download files that supports files of type- xls,xlsm,xlsx, doc,docx,pdf,msg etc.
Recently, the code for downloading the file got modified to return FileResult form action method instead of, giving link to the file in server. Given the code below:
public async Task<ActionResult> ShowFile()
{
return new FileContentResult(FileBytes, mimeType);
}
The above code in windows7 machines throwing Microsoft Excel Security Warning popup with below message, But the code is working fine in windows 10 IE 11
The application experienced an internal error loading the SSL libraries
When the code modified as below, got the warning message stop displaying.
return this.File(response.FileBytes, mimeType, response.FileName);
Can someone help understand what actually causing the issue with returning the FileContentResult as response from the Action Result