problem downloading word documents

C

cyusman

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 <filename> from <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.
 
E

Eliyahu Goldin

How big is the document? There is a known issue with Response.WriteFile when
downloading large files.
 
C

cyusman

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




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 <filename> from <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.
 
G

Guest

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

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 <filename> from <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.
 
C

cyusman

On Mar 27, 11:09 am, (e-mail address removed) wrote:
On Mar 27, 3:22 pm, "Eliyahu Goldin"
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

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 <filename> from <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!
 
G

Guest

On Mar 27, 12:05 pm, "Anon User" <[email protected]>
wrote:
On Mar 27, 11:09 am, (e-mail address removed) wrote:
On Mar 27, 3:22 pm, "Eliyahu Goldin"
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

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 <filename> from <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/pr...289-94d3-4085-bc4e-24eb4f312e0e.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top