As you can see I'm creating an HttpWebRequest object and I initialize it. However, when I try to get a response I create an HttpWebResponse object but the initializer method is not accessible. After some googling I find out that insted of the HttpWebResponse initializer I have to use GetResponse() instead. Everywhere I look I find this but the C# compiler keeps considering the GetResponse method non-existent (and it is). The MSDN Documentation is completely useless and not updated whatsoever concerning the WebResponse class and its child-classes. Please help me with an up-to-date method or example :-) thank you.
I tried what you suggested but the GetResponse() method doesn't seem to exist in the class definition. Is there an alternative way to make the request and receive the data from google? (I expect an XML file to be returned)
The problem is with the XmlDocument class. I have included the System.Xml namespace but the class name and constructor are not recognized. I'm getting really upset with visual studio. There is no explanation so far as to what is wrong with the recognition of the classes and their methods. Do I need to install an extra package of namespaces or something? (I just installed Windows 8 with visual studio 2012 express for windows 8. Is there something more I need to install?)