473,320 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Browser is shut down after download!?

Hi,

I have created a website, where users can download some documents. After
clicks on a specific download-link following code is used:

Dim file As System.IO.FileInfo = New System.IO.FileInfo(filename)
If file.Exists Then
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment;
filename=" & file.Name)
Response.AddHeader("Content-Length", file.Length.ToString())
Response.ContentType = "application/msword"
Response.WriteFile(file.FullName)
Response.End()
Else
Response.Write("Document doesn't exist.")
End If

So, that works fine on most machines. But on some the browser is shut down
after downloading the document. I've read somthing about that this was a
known problem in IE 5.5, but all users of mine are using IE 6.

So, does somebody know, what I'm doing wrong!?

Thanks,

Fabian F.
Nov 14 '06 #1
0 807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Nancy Drew | last post by:
hi all i'm trying to keep users from being able to login to a site twice at the same time. everytime a user does a login, i stick their userID into an application scoped array. if they try to...
4
by: Claire | last post by:
Running XP pro, SP2. Visual studio .NET 2003. App written in C# I have written an application that hides itself when run and shows a notification icon in the system tray. If the main form is...
4
by: Diogo Alves - Software Developer | last post by:
Hi, I have a application developed by me in C# that does not let windows shut down! What is the problem? is this a Framework bug? I would like to receive some feedback about this issue
5
by: Anders Both | last post by:
If no pages in my asp.net web-system, is being requested for some periode, it seems like the asp.net process is shut down automaticaly. Is this a normal behavior, or does my system contains some...
2
by: Neil Cooper | last post by:
Hi Not sure if this the right group or not but here it goes. Here is a part excerpt of my code in the Page_Load Event 'Create cache if the cache object doesn't exist yet If...
6
by: Brett | last post by:
I've created a new ASP.NET application. When I preview my aspx webpage in VS.NET 2003, it will freeze my machine. Not every time. Sometimes on the first preview, sometimes on the forth. Any...
0
by: ArkJ | last post by:
Hello. I have a little problem. I created a little Service which uses SIP, all works rather well, but when I want to shut it down in the Services panel, it looks as if it's shut down, but in fact...
6
by: Chuck Anderson | last post by:
I have decided to create a browser based Php application for a client/friend of mine (HTML forms to PDF, for one - perhaps a contacts interface). He has a web site, so I can upload the application...
2
by: Chizl | last post by:
I have a C# developed web service.. Everyone once in a while I see it not running.. There are no logs saying it was shutting down, no eventlog saying there was an error or it was being shutdown,...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.