469,889 Members | 1,103 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

problem downloading word documents

Hi,

We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading and HTTP
compression off-loading.My application is running on .NET 1.1, IIS 6,
Win2003.

Now we are having problem when trying to download word documents
located in the file server. It often says Internet Explorer cannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWord file, but most of the time we cannot open the document.

This is how I stream out the word contents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();

I was informed that we have excluded application/msword from the
compression list.

Any idea what else could cause the problem in downloading the word
document?

Thanks a lot.

Mar 27 '07 #1
6 3581
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
<cy*****@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hi,

We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading and HTTP
compression off-loading.My application is running on .NET 1.1, IIS 6,
Win2003.

Now we are having problem when trying to download word documents
located in the file server. It often says Internet Explorer cannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWord file, but most of the time we cannot open the document.

This is how I stream out the word contents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();

I was informed that we have excluded application/msword from the
compression list.

Any idea what else could cause the problem in downloading the word
document?

Thanks a lot.

Mar 27 '07 #2
On Mar 27, 3:22 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin

<cyus...@gmail.comwrote in message

news:11**********************@p77g2000hsh.googlegr oups.com...
Hi,
We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading and HTTP
compression off-loading.My application is running on .NET 1.1, IIS 6,
Win2003.
Now we are having problem when trying to download word documents
located in the file server. It often says Internet Explorer cannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWord file, but most of the time we cannot open the document.
This is how I stream out the word contents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
I was informed that we have excluded application/msword from the
compression list.
Any idea what else could cause the problem in downloading the word
document?
Thanks a lot.- Hide quoted text -

- Show quoted text -
The file size is certainly not large. I've exprienced this problem
even when I tried to download a 51kb file. The file that we have has a
maximum of 4MB size limit.

Mar 27 '07 #3
On Mar 27, 11:09 am, cyus...@gmail.com wrote:
On Mar 27, 3:22 pm, "Eliyahu Goldin"

<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin
<cyus...@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hi,
We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading and HTTP
compression off-loading.My application is running on .NET 1.1, IIS 6,
Win2003.
Now we are having problem when trying to download word documents
located in the file server. It often says Internet Explorer cannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWord file, but most of the time we cannot open the document.
This is how I stream out the word contents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
I was informed that we have excluded application/msword from the
compression list.
Any idea what else could cause the problem in downloading the word
document?
Thanks a lot.- Hide quoted text -
- Show quoted text -

The file size is certainly not large. I've exprienced this problem
even when I tried to download a 51kb file. The file that we have has a
maximum of 4MB size limit.- Hide quoted text -

- Show quoted text -
Try to follow the code of this article http://support.microsoft.com/kb/812406

Maybe this helps

Mar 27 '07 #4
On Mar 27, 12:05 pm, "Alexey Smirnov" <alexey.smir...@gmail.com>
wrote:
On Mar 27, 11:09 am, cyus...@gmail.com wrote:


On Mar 27, 3:22 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin
<cyus...@gmail.comwrote in message
>news:11**********************@p77g2000hsh.googleg roups.com...
Hi,
We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading and HTTP
compression off-loading.My application is running on .NET 1.1, IIS 6,
Win2003.
Now we are having problem when trying to download word documents
located in the file server. It often says Internet Explorer cannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWord file, but most of the time we cannot open the document.
This is how I stream out the word contents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
I was informed that we have excluded application/msword from the
compression list.
Any idea what else could cause the problem in downloading the word
document?
Thanks a lot.- Hide quoted text -
- Show quoted text -
The file size is certainly not large. I've exprienced this problem
even when I tried to download a 51kb file. The file that we have has a
maximum of 4MB size limit.- Hide quoted text -
- Show quoted text -

Try to follow the code of this articlehttp://support.microsoft.com/kb/812406

Maybe this helps- Hide quoted text -

- Show quoted text -
If http compression for aspx is enabled, try to disable it.

Mar 27 '07 #5
On Mar 27, 6:24 pm, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
On Mar 27, 12:05 pm, "Alexey Smirnov" <alexey.smir...@gmail.com>
wrote:


On Mar 27, 11:09 am, cyus...@gmail.com wrote:
On Mar 27, 3:22 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin
<cyus...@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hi,
We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading andHTTP
>compressionoff-loading.My application is running on .NET 1.1, IIS 6,
Win2003.
Now we are having problem when trying to downloadworddocuments
located in thefileserver. It often saysInternetExplorercannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWordfile, but most of the time wecannotopenthe document.
This is how I stream out thewordcontents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length",file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
I was informed that we have excluded application/msword from the
>compressionlist.
Any idea what else could cause the problem in downloading theword
document?
Thanks a lot.- Hide quoted text -
- Show quoted text -
Thefilesize is certainly not large. I've exprienced this problem
even when I tried to download a 51kbfile. Thefilethat we have has a
maximum of 4MB size limit.- Hide quoted text -
- Show quoted text -
Try to follow the code of this articlehttp://support.microsoft.com/kb/812406
Maybe this helps- Hide quoted text -
- Show quoted text -

Ifhttpcompressionfor aspx is enabled, try to disable it.- Hide quoted text -

- Show quoted text -
Hi,

How do I disable the http compression for aspx? Would it be possible
to disable http compression for 1 aspx page only?

Sorry for asking stupid questions. I'm not really familiar with this
http compression stuff.

Thanks!

Mar 27 '07 #6
On Mar 27, 5:02 pm, cyus...@gmail.com wrote:
On Mar 27, 6:24 pm, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
On Mar 27, 12:05 pm, "Alexey Smirnov" <alexey.smir...@gmail.com>
wrote:
On Mar 27, 11:09 am, cyus...@gmail.com wrote:
On Mar 27, 3:22 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
How big is the document? There is a known issue with Response.WriteFile when
downloading large files.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin
<cyus...@gmail.comwrote in message
>news:11**********************@p77g2000hsh.googleg roups.com...
Hi,
We have just moved our application to a new webfarm server environment
which utilizing hardware load balancing, SSL off-loading andHTTP
compressionoff-loading.My application is running on .NET 1.1, IIS 6,
Win2003.
Now we are having problem when trying to downloadworddocuments
located in thefileserver. It often saysInternetExplorercannot
download <filenamefrom <servername>. Sometimes we are able to view
the MSWordfile, but most of the time wecannotopenthe document.
This is how I stream out thewordcontents to the browser
Response.ContentType = "application/msword";
Response.AddHeader("content-disposition","attachment; filename=" +
document.DocumentPath);
Response.AppendHeader("Content-Length",file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
I was informed that we have excluded application/msword from the
compressionlist.
Any idea what else could cause the problem in downloading theword
document?
Thanks a lot.- Hide quoted text -
- Show quoted text -
Thefilesize is certainly not large. I've exprienced this problem
even when I tried to download a 51kbfile. Thefilethat we have has a
maximum of 4MB size limit.- Hide quoted text -
- Show quoted text -
Try to follow the code of this articlehttp://support.microsoft.com/kb/812406
Maybe this helps- Hide quoted text -
- Show quoted text -
Ifhttpcompressionfor aspx is enabled, try to disable it.- Hide quoted text -
- Show quoted text -

Hi,

How do I disable the http compression for aspx? Would it be possible
to disable http compression for 1 aspx page only?

Sorry for asking stupid questions. I'm not really familiar with this
http compression stuff.

Thanks!- Hide quoted text -

- Show quoted text -
Source: http://www.microsoft.com/technet/pro....mspx?mfr=true

You cannot disable the compression for 1 aspx page only, but you can
disable it just for 1 directory ("To enable HTTP Compression for
Individual Sites and Site Elements"). Try if it helps.

Mar 27 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by mharris | last post: by
2 posts views Thread by Ian Gordon | last post: by
16 posts views Thread by Simon Verona | last post: by
11 posts views Thread by leiz | last post: by
15 posts views Thread by =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post: by
8 posts views Thread by Jeppe Dige Jespersen | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.