Solve problem in downloding xml in different browser
Last post 05-13-2008 10:53 AM by sladapter. 6 replies.
Sort Posts:
05-08-2008 1:13 AM
Solve problem in downloding xml in different browser

Sir,

I am using webclient method to download xml from various url but it works in some browsers like firefox and netscape browser,

but in Internrt explorer it doesn't download from all the urls.

I didn't understand why it is doing so, please give me some answer.

Thanks

vijchn

Joined on 04-29-2008
Posts 16
05-08-2008 2:31 PM
Re: Solve problem in downloding xml in different browser

Please be more specific. When you say "in Internrt explorer it doesn't download from all the urls" what kind of error did you get? It could be cross-domain issue if only some URL not working . However,  if the same URL worked in firefox but not on IE it does not look like a cross-domain issue. Could you show your code here.
 

 

 

Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Joined on 03-05-2008
Indiana, US
Posts 404
05-09-2008 1:29 AM
Solve problem in downloding xml in different browser

Thanks for answer

Here is my code lines

WebClient webclient = new WebClient();

webclient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webclient_DownloadStringCompleted);

webclient.DownloadStringAsync(new Uri(url));   // Its a simple url which returns the xml 

 There is handler

public void webclient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)

 

{ // }

When I check it in IE-7 it works for all the urls but It is not works IE-6

When I trace in IE-6 it won't go in webclient_DownloadStringCompleted

so I didn't understand whats the problem

Thanks

vijchn

Joined on 04-29-2008
Posts 16
05-09-2008 11:01 AM
Re: Solve problem in downloding xml in different browser

Do you have the URL that works in IE7 but not in IE6 we can try?

 

 

Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Joined on 03-05-2008
Indiana, US
Posts 404
05-12-2008 12:57 AM
Re: Solve problem in downloding xml in different browser

The url which I have, is workig if we put it directly in browser and try to open in IE6 as well as IE7 but I tried it with webclient method to download its content but it not works in IE-6 it works with firefox 2.0 and IE-7.

vijchn

Joined on 04-29-2008
Posts 16
05-13-2008 2:49 AM
Re: Solve problem in downloding xml in different browser

Hi,

 This is the url returns the xml. I am unable to download the xml in IE6 but it is successfully being download in Firefox. 

 http://webservices.amazon.com/crossdomain.xml

if it is unable to download the url, it must prompt some error or some way to debug the problem. But it simply gives no response making hard to track it.

  Thanks

 

jlal

Joined on 04-27-2008
Posts 3
05-13-2008 10:53 AM
Re: Solve problem in downloding xml in different browser

Yes, I tried this url and can confirm this url does not work in IE6 (simply no reposonse in IE6). but works in IE7 and Firefox. Maybe we should report this in the Bug forum.  

 

 

Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

sladapter

Joined on 03-05-2008
Indiana, US
Posts 404