I have an .xlsx file with a cell containing "a@" - kind of a broken email address. When I try to open it using new XSSFWorkbook(file).
Exception: UrlFormatException
Invalid URI: The hostname could not be parsed.
Comments: ** Comment from web user: danielpalme **
Exception: UrlFormatException
Invalid URI: The hostname could not be parsed.
Comments: ** Comment from web user: danielpalme **
I have the same problem.
One way to fix this issue, is to edit _XSSFHyperlink.cs_.
Replace line 85:
```
_location = target.ToString();
```
With:
```
try
{
_location = target.ToString();
}
catch (UriFormatException)
{
_location = target.OriginalString;
}
```
This works fine for me.