• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Can't open file in a temporary directory...

Hi,

I saw a couple of similar questions but neither had an accepted answer that solved my problem.  Here's the deal...I am dynamically creating a comma separated value (CSV) file using Java Server Pages (JSP).  When the user chooses to get the CSV file the user is prompted to save the file, open the file or cancel.  Everything works fine with saving the file.  And for most people everything works fine when opening the file.  But one tester ran into an error when trying to open the file.  He got the following error message:

"C:\Documents and Settings\...\Local Settings\Temporary Internet Files\Content.IE5\6TCFAPSX\'sub_rates[1].csv' could not be found.  Check the spelling of the file name, and verify that the file location is correct."

So it seems like there is some security setting on his computer that won't allow him to open the CSV file.  I was using IE6 and we synchronized our security settings and then I experienced the same problem.  But then I installed IE7 and now I don't get the problem.

Do you by chance know what is blocking this file from opening?

Thank you!
0
david_m_jacobson
Asked:
david_m_jacobson
  • 2
  • 2
  • 2
1 Solution
 
periwinkleCommented:
Possible:

From the Tools pull down menu select Internet Options, and click on the Security tab.

with 'internet' highlighted, click on custom level.

Under the section 'Downloads' - is it disabled?
0
 
david_m_jacobsonAuthor Commented:
no
0
 
david_m_jacobsonAuthor Commented:
Here is the solution:

response.setHeader("Cache-Control", "post-check=0, pre-check=0");
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
CWS (haripriya)Commented:
Switch off the Firewall and Antivirus Program and then try to open it.
0
 
periwinkleCommented:
RomMod - I agree with PAQ/Refund - David had already posted his solution;  the last post was a post after that!
0
 
CWS (haripriya)Commented:
Sorry, I did not see the author comment properly.

I agree with PAQ. So, the new users can see the result.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now