By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

downloading file from asp.net to flash not working

P: n/a
Hi, I've a big trouble with an asp.net page.

Basically, the page has an swf that starts and downloads some data from an
other asp.net page. The application works well on my testing IIS 6, but when
I upload it on production server (an other IIS6), it cannot download
anything. The application is in ASP.NET 2.0.

The page with swf, the swf, and the page that renders data (as xml) are on
the same domain and same web site. The site has form authentication enabled,
as test server does.
On IIS log I read requests for page with xml data, and 200 as return code.

Swf doesn't receive anything.
If the flash points to a static xml file on same server, it can download it.

This is a nightmare.. someone can help me?

thanks

Apr 20 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Trapulo,

Thank you for posting.

As for the file downloading issue, I'm thinking whether it is the forms
authentication that prevent that xml rendering page from being accessed by
the flash on another page? Have you checked the application's authoriztion
setting to see whether the xml rendering page is protected by the forms
authentication. Also in IIS log, though it will return 200 , however, if
the page is protected by forms authenitation, there will exists a
redirection entry.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Apr 21 '06 #2

P: n/a
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:8g*************@TK2MSFTNGXA01.phx.gbl...
Hi Trapulo,

Thank you for posting.
Hi Steven, thank you for your assistance.
As for the file downloading issue, I'm thinking whether it is the forms
authentication that prevent that xml rendering page from being accessed by
the flash on another page? Have you checked the application's authoriztion
setting to see whether the xml rendering page is protected by the forms
authentication. Also in IIS log, though it will return 200 , however, if
the page is protected by forms authenitation, there will exists a
redirection entry.


I think is not a problem related to forms authentication, based on this
facts:
- same application, with same web.config, works on test server
- if I show, as debug, the path that flash is requesting, and I cut and
paste it from flash to IE address bar, I can see the xml without other
authentication
- same flash, on same server, can get an image from an other aspx page. The
flow is the same: flash makes a "get" to the server, the aspx page retrieves
data from a db (the image in this case) and writes them to the output
stream. If I have an authentication issue, I think that flash cannot
download the image from aspx too. Instead of this, the flash can download
the image from an aspx page, and it cannot download the xml from the other.
- IIS logs have only 200 records, and not other rows related redirection
- asp.net trace reports that the page creating the xml has been executed

This is very, very strange, and a real nightmare :(

Apr 21 '06 #3

P: n/a
Thank you for the response Trapulo,

So it is not the formsauthentication that cause the problem. I have one
suggestion, since the problem occurs when the flash try accessing the xml
file returned by another page, I think you can use some client-side script
which use XMLHTTP component to send request to that page to get the xml
stream. If that works, we can confirm that the problem is with the FLASH
application's internal http access component.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 24 '06 #4

P: n/a
After a lot of debug, I solved.
The problem was this command:
Response.Cache.SetCacheability(System.Web.HttpCach eability.NoCache)

ONLY on production server, ONLY if flash runs on IE, ONLY if I call the page
from flash and not directly from IE, the output is not received.

note: the same application, on the same server, one year ago worked well...
:(
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:b0*************@TK2MSFTNGXA01.phx.gbl...
Thank you for the response Trapulo,

So it is not the formsauthentication that cause the problem. I have one
suggestion, since the problem occurs when the flash try accessing the xml
file returned by another page, I think you can use some client-side script
which use XMLHTTP component to send request to that page to get the xml
stream. If that works, we can confirm that the problem is with the FLASH
application's internal http access component.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 3 '06 #5

P: n/a
Thanks for your followup Trapulo,

A bit unexpected that the problem be some env specific. Anyway, glad that
you've figured it out finally. If there is any other things we can help,
please also feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 4 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.