Last post Oct 05, 2018 12:09 AM by bruce (sqlwork.com)
Oct 03, 2018 04:43 AM|JayM|LINK
This MS Edge problem is best seen in Visual Studio 2017 while stepping through the controller action in the debugger. The PDF will display however, there is no integrity in the controller action as it is invoked multiple times. The problem does not occur
in FireFox, Chrome, or IE.
Here is the Home controller DisplayPDF() action:
public FileResult DisplayPDF()
Logger.log("Home DisplayPDF() invoked"); //The problem occurs with or without the logger.
string zFileu = Server.MapPath(@"~/APP_DATA/tmp/") + "test.pdf";
return File(zFileu, "application/pdf");
Here is Home's Index.cshtml:
Layout = null;
ViewBag.Title = "Home Page";
@Html.ActionLink("Display A PDF", "DisplayPDF", "Home")
Oct 04, 2018 12:19 AM|rymling|LINK
You probably need to handle HTTP range requests.
Oct 04, 2018 08:50 AM|Yuki Tao|LINK
I make a simple demo according to your code,but i can't reproduce you issue.
My action runs one time.
How my demo works:
So,what's your version?I guess there may be a version problem.
My Edge's version is:
Microsoft Edge 42.17134.1.0
Oct 05, 2018 12:09 AM|bruce (sqlwork.com)|LINK