I have being trying to open a pdf file in the Browser like this,
return File(docPath, "application/pdf");
and I get this error
FileNotFoundException: Could not find file: C:\WebApplication1\src\WebApplication1\wwwroot\PdfFolder\FileName.pdf
and I am shure the directory is correct