ASP.NET MVC FileContentResult IE 8.0在下载时挂起

时间:2010-04-30 15:06:46

标签: asp.net asp.net-mvc internet-explorer download

我的一些用户在尝试下载报告时遇到问题,下载只是挂起0%,重启IE通常可以解决问题。

为什么会这样?

我正在使用ASP.NET MVC(v1),我的操作看起来像这样

<Authorize()> _
<AcceptVerbs(HttpVerbs.Get)> _
Function RenderReport(ByVal guid As Guid, ByVal anonym As Boolean) As FileContentResult

    ...

    Dim mimeType As String = String.Empty
    Dim renderedBytes() As Byte = EmployeePresentation.Render(guid, mimeType, Server.MapPath("~/Reports/..."), anonym)
    Return File(renderedBytes, mimeType, filename)
End Function

文件名为US-ASCII编码,文件大小通常为300Kb左右,mimeType为application / pdf

TIA

0 个答案:

没有答案
相关问题