I use a simple call to get a RssFeed. But everytime I call the request, it throws a WebException
which says "Remoteserver didn't answer".
But if I try it with IE/Chrome/Firefox, I got an answer.
So I tried to start a minimal consoleproject only with this function :
class Test
{
static void Main(string[] args)
{
WebRequest request = WebRequest.Create(@"http://stackoverflow.com/feeds/question/13952467");
request.Timeout = System.Threading.Timeout.Infinite;
using(WebResponse response = request.GetResponse())
using(XmlReader reader = XmlReader.Create(response.GetResponseStream()))
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(reader);
foreach(XmlNode _node in xmlDoc.SelectNodes("rss/channel/item"))
{
Console.WriteLine(_node.InnerText);
}
}
Console.Read();
}
}
These minimalproject works, so the problem is into my project settings, but what's going with my mainproject?