473,320 Members | 2,073 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.

Response.Add Header problems (Content-disposition)

All,
I have an ASP Application in which users can save a recordset as an Excel
spreadsheet should they choose to do so.

When the app was on test box all was well but when I moved it to
production, the page failed and IE returned an error saying that the page
was not available

The lines of code that cause the error appear to be:

in test I have
Response.AddHeader "Content-Disposition", "inline; filename=weberport1.xls"
Response.ContentType = "application/vnd.ms-excel"

On the production server in a secure environment the same lines produce the
error "Page not available"

If I Comment out the first line the page works fine and I get he option to
save the page as a excel spreadsheet.
e.g
'Response.AddHeader "Content-Disposition", "inline; filename=weberport1.xls"
Response.ContentType = "application/vnd.ms-excel"

Does having the application on a secure environment prevent pages from being
returned with a content-disposition
Has anyone seen this error before,? is there a special feature on IIS for
secure links?

Any help or suggestions are appreciated

Thanks
Jawahar
Jul 19 '05 #1
1 14664
you have excel loaded on the production machine?
"Jawahar Rajan" <jr****@nc.rr.com> wrote in message
news:hV*********************@twister.southeast.rr. com...
All,
I have an ASP Application in which users can save a recordset as an Excel
spreadsheet should they choose to do so.

When the app was on test box all was well but when I moved it to
production, the page failed and IE returned an error saying that the page
was not available

The lines of code that cause the error appear to be:

in test I have
Response.AddHeader "Content-Disposition", "inline; filename=weberport1.xls" Response.ContentType = "application/vnd.ms-excel"

On the production server in a secure environment the same lines produce the error "Page not available"

If I Comment out the first line the page works fine and I get he option to
save the page as a excel spreadsheet.
e.g
'Response.AddHeader "Content-Disposition", "inline; filename=weberport1.xls" Response.ContentType = "application/vnd.ms-excel"

Does having the application on a secure environment prevent pages from being returned with a content-disposition
Has anyone seen this error before,? is there a special feature on IIS for secure links?

Any help or suggestions are appreciated

Thanks
Jawahar

Jul 19 '05 #2

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

Similar topics

1
by: vaibhav verma | last post by:
Hi, I am trying to write a web browser control Application in c#, i want to trap al http request and response header which are sent/recieved. I am new to Windows programming With Regards,...
6
by: _jpg_ | last post by:
Hi, I need to read (& store) all the custom response headers in an HttpResponse. I am writing an HttpModule and hence do not know what headers could have been added (but need to cache them for...
1
by: Alfons Puig | last post by:
Hi, MSDN documentation about HTTP Response Headers say Refresh is obsolete and maintained for legacy application compatibility only. How can I achieve the same functionality to releoad the new...
0
by: Jan Jacobs | last post by:
Hi there, right now i have to create a webservice that complies with an existing client already. This client was written in Java, and provides a soap header like this: <soap-env:Header>...
6
by: gamehack | last post by:
Hi all, Let me describe the problem. I've a header file util.h which contains the following: #ifndef UTIL_H_ #define UTIL_H_ const char DEF_TITLE = "My Title"; int num_chars(int num);
8
by: Katie | last post by:
Hi, I am trying to set the content type and header for the response object but for some reason it doesnt set it. I tried it on dev and it worked fine but didnot on production. The difference is...
3
by: sean.j.gage | last post by:
We are building a web service for a client application that will need to send information in the Header of the web service responses. What's the best way to access this header information from the...
1
by: pingalkar | last post by:
hi, I want to read time from http response header , using javascript in Hr , Minute and Second form. Pls help with code snipet. thanks & regards, Gajendra
0
by: Narendramohan | last post by:
Hi All. How to Add Custom Http Response header in a windows service.? Please help me.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.