不工作的Internet Explorer 6中下载的文件(仅适用于某些人)

不工作的Internet Explorer 6中下载的文件(仅适用于某些人)

问题描述:

我工作的一个ASP.NET web应用MVC3

I am working on an ASP.NET MVC3 webapplication.

我有一个按钮下载是从服务器下载一个文件。

I have a button "Download" that downloads a file from the server.

<input type="button" onclick="window.location.href='@Url.Action("DownloadFile", "Home")';" value="Download"/>

在HomeController的我调用返回该文件的行动DownloadFile

In the HomeController I call the Action "DownloadFile" that returns the file

return File(fileToReturn, Path.GetFileName(fileToReturn));

这是在所有浏览器正常工作。

This is working normally on all browsers.

但有些人报告说下载不上Internet Explorer 6中工作。

however some people report that the download does not work on Internet Explorer 6.

我安装了IE6和测试的网站上,它是正常工作。

I installed IE6 and tested the website on it and it was working normally.

因此​​,这是我的问题:

So this is my question:

什么可以导致下载不为某些IE6的工作,但对别人的工作?

What may have cause the download to not work for certain IE6 but work on others?

首先,我认为这是在IE的安全选项。但后来我在我的IE6测试了不同的安全选项,当我不能下载由于安全原因,我得到一个消息当前安全设置不允许要下载此文件但是,他们没有得到这个(文件只是不下载任何东西没有发生)

First I thought it was a security option in IE. But then I tested on my IE6 for different security option, When I cannot download due to security reason I get a message Your current security settings does not allow this file to be downloaded But they are not getting this (the file just does not download without anything happening)

什么可能会导致此?我无法重现它,以解决它。

What may be causing this? I am unable to reproduce it in order to fix it.

非常感谢任何帮助。

我也有类似的问题,一旦和管理,通过以下步骤来解决这个问题:

I had a similar problem once and managed to fix it by following these steps:


  • 在Internet Explorer中,单击的工具的,然后单击的 Internet选项

  • 点击安全的标签。

  • 有上市的四个安全区域:网络本地Intranet 受信任的站点受限制的站点的。点击你的网站是(当你浏览到您的网站,目前区域在IE浏览器窗口底部的状态栏中显示)的区域。

  • 安全级别的这个区域,单击的自定义级别

  • 下载的,在自动提示文件下载下,点击启用,然后单击确定两次。

  • In Internet Explorer, click Tools, and then click Internet Options.
  • Click the Security tab.
  • There are four security zones listed: Internet, Local intranet, Trusted sites, Restricted sites. Click the zone your website is in (when you navigate to your site, the current zone is displayed in the status bar at the bottom of IE's window).
  • Under Security level for this zone, click Custom Level.
  • Under Downloads, under Automatic prompting for file downloads, click Enable, and then click OK two times.