Question: I have this error, how do I solve it? ArgumentException: String cannot be of zero length. (Parameter 'oldValue')
Please Login to see the rest of the answer
string path = Url.Content(Path.Combine("wwwroot", "MyFolderOne", "MyFolder", $"MyReportName-{DateTime.Now.ToString("yyyyMMdd").Replace("/", "-")}.pdf"));
If this answer helped you solve your problem, leave us a comment below.
For me it was because I used Replace empty strings, once I removed that it was okay.