473,500 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

downloading file from asp.net to flash not working

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
5 1586
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3197
by: ASP Spam Fighter | last post by:
Hello all, I don't know how to get around this one... If anybody can help me with this problem, I would appreciate it very much. I've been trying to send a (large) file to the browser via a...
0
1503
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength =...
4
2915
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
3
2608
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
6
2504
sangeeth
by: sangeeth | last post by:
Dear all, All the links for downloading of flash plugin for windows take me to this link http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW on...
3
2978
by: fnustle | last post by:
I've embedded a flash file into an assembly: But when I try to reference it on a web page: <object codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab"...
2
5863
by: hayz | last post by:
Flash sound file looping problems hello there I'm definitely a newb so please bare some patience. I have a flash sound file on the index page of a site i'm working on. First off i need the...
3
2366
by: Jim Ford | last post by:
This is more strictly an HTML problem, but as I'm also using PHP and the HTML groups seem to be infested with spam, I'm posting it here! At the school where I work I've got an online searchable...
1
2387
by: patronise | last post by:
My problem is that I'm wrestling to make the LoadMovie and UnloadMovie functions work for me. Here is the layout of my flash file: I've got several seperate flash files and I can jump to any one of...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.