I'm using the OpenXml namespace in my application. I'm using this to read the XML within an Excel file. This works fine with certain excel files but on others I get a run time error saying
Invalid Hyperlink: Malformed URI is embedded as a hyperlink in the document.
I get the run time on the following line
using (var spreadsheet =
DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open(filePathCopy, true))
I'm not sure why it works for some Excel files and doesn't work on others.