on 06-05-2012 09:15 PM
So i'm using this :
HttpWebRequest wr = (HttpWebRequest)HttpWebRequest.Create("http://maps.weather.com/web/radar/us_orl_ultrarada r_large_usen.jpg");
HttpWebResponse ws = (HttpWebResponse)wr.GetResponse();And at the getResponse() I always get:
{System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
Any idea what I'm doing wrong?
Solved! Go to Solution.
on 07-05-2012 01:44 AM
I was getting similar problems (and still do sometimes). A couple of things I have noticed;
1. Adding the code below initially fixed the problem for me. I'm pretty sure the Timeout parameter doesn't do anything, I just added it as habit, but setting UserAgent means that the WebServer believes you are a real web-browser - as many sites seem to block GET requests from clients that don't have a UserAgent set.
webRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)";
webRequest.Timeout = 30000;
2. I also found that if I have been testing for sometime, then some servers seem to block you.
3. What's really weird - my latest problem (which I've not resolved yet), is that whenever I initialise a WebRequest as soon as my app loads, then I get this error. However, if I force this action to take place sometime after my app has finished loading (just a second later) through a UI button - then it always seems to work.
Hope something above helps!
on 07-05-2012 10:14 PM
Nr 3 fixt my problem. Thanks!
on 11-05-2012 06:24 PM
11-05-2012 07:34 PM - edited 11-05-2012 07:37 PM
I also get this message right after the timeout:
"D:\Program Files (x86)\SCE\Pss\mono\etc\mono\2.1\machine.config" is too deep subdirectory depth
"D:\Program Files (x86)\SCE\Pss\mono\etc\mono\2.1\machine.config" is too deep subdirectory depth
The request timed out: at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
on 12-05-2012 07:16 AM
same here i always have issue with networking
on 14-05-2012 06:01 PM
19-05-2012 09:44 AM - edited 19-05-2012 09:56 AM
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870