Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > problem: Stream XLS to user via ASP page

Reply
Thread Tools

problem: Stream XLS to user via ASP page

 
 
CJM
Guest
Posts: n/a
 
      10-12-2005
I have a page which streams an Excel spreadsheet to the user. It has worked
fine for 12mths or more, but recently I found out that it wasn't working. I
suspect the problem lies with IIS, but I'm not sure...

When the user submits a form, the page should stream the file to the user -
the user is presented with a standard Open/Save/Cancel dialog, which the
would ordinarily save to their HDD. I have updoaded the code from the live
server to my development machine (IIS5.1) - and this same code works fine.

However, on the live server (IIS6), the user is presented with the dialog
box, but rather than listing myfile.xls, it lists mypage.asp as the file to
be downloaded.

I think this must be an IIS6 issue but I don't know what. Some time before
the problem was noticed, work had been done on the live server, but AFAIK
nothing was done that was *intended* to affect this application.

Any ideas?

TIA

Chris
--

[remove the obvious bits]


 
Reply With Quote
 
 
 
 
Tom Kaminski [MVP]
Guest
Posts: n/a
 
      10-12-2005
"CJM" <> wrote in message
news:%...
>I have a page which streams an Excel spreadsheet to the user. It has worked
>fine for 12mths or more, but recently I found out that it wasn't working. I
>suspect the problem lies with IIS, but I'm not sure...
>
> When the user submits a form, the page should stream the file to the
> user - the user is presented with a standard Open/Save/Cancel dialog,
> which the would ordinarily save to their HDD. I have updoaded the code
> from the live server to my development machine (IIS5.1) - and this same
> code works fine.
>
> However, on the live server (IIS6), the user is presented with the dialog
> box, but rather than listing myfile.xls, it lists mypage.asp as the file
> to be downloaded.
>
> I think this must be an IIS6 issue but I don't know what. Some time before
> the problem was noticed, work had been done on the live server, but AFAIK
> nothing was done that was *intended* to affect this application.
>
> Any ideas?


Does any of this help?
http://www.aspfaq.com/show.asp?id=2161

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS


 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      10-14-2005

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%...
>
> Does any of this help?
> http://www.aspfaq.com/show.asp?id=2161
>


I'm not sure what the problem was but I solved it by re-doing the page using
my original technique.

However, before I tried that, I tried the approach recommended on ASPFAQ,
which *didnt* work. I had the problem where the XLS was being downloaded,
but with name of my ASP page. This is a recognised problem, but none of the
solutions recommended of that problem in the MS KB articles worked.

Since my page is now working I'm obviously not going to pursue it, but there
was clearly more to that naming problem than the KB article suggested.

Thanks

Chris


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I change the response URL to http://server/page.XLS instead of http://server/page.ASPX ? guillermojco@gmail.com ASP .Net 3 04-26-2007 04:49 AM
Sending xls file from Server to Client via asp.net Lars Netzel ASP .Net 1 11-10-2005 03:07 PM
XLS embedded in ASP.Net page? Beffmans ASP .Net Web Controls 0 09-14-2005 08:22 AM
Upload .xls file to SQL Server via ASP.NET app bubberz ASP .Net 1 08-06-2005 12:32 AM
XML transform via XLS Richard Koch XML 6 02-02-2004 09:05 PM



Advertisments