473,566 Members | 2,812 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 1594
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******** *****@TK2MSFTNG XA01.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 formsauthentica tion 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.Htt pCacheability.N oCache)

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******** *****@TK2MSFTNG XA01.phx.gbl...
Thank you for the response Trapulo,

So it is not the formsauthentica tion 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
3210
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 download page that uses a file download component. The file downloads fine, except that Internet Explorer refuses to browse to a different page...
0
1511
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 = file.ContentLength; byte fileContent = new byte; int lastPos = file.FileName.LastIndexOf('\\');
4
2923
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 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is...
3
2616
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 running into some PHP behavior that I do not understand in PHP 5.1.2. I need to parse the HTML from the following carefully constructed URI:
6
2512
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 clicking on the link download now . .the next page shows an "i" I don't know what to do now.. can anyone tell me an alternative source where I can get...
3
2985
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" height="100" width="100" classid="clsid:D27CDB6E- AE6D-11cf-96B8-444553540000">
2
5873
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 .swf file to continuously loop, secondly i need this same file to play on every page visited on the site. I've researched and tried to just follow...
3
2377
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 database of video tapes and dvds, using MySql and PHP on a Linux machine. It works fine. I'm trancoding some of the tapes to avi files, which can be...
1
2389
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 them by pressing a specific key to load another flash file. Here is the code I'm using for this bit: Now when the next flash file is loaded, I...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.