My head is swimming...
VS 2008 Express with c#
I have added System.Net in the References, and included "Using System.Net" in the service1.cs file. I'm working in the service1.Designer.cs file.
Every indication is that you have to do:
objRequest = (HttpWebRequest)WebRequest.Create("http://www.mysite.com/x.aspx");
First of all,
HttpWebRequest objRequest; <-- gives error
So I add the explicit reference to (Sytem.Net):
System.Net.HttpWebRequest objRequest; <-- no error
I also added the reference in the "objRequest =" line but I *STILL* get an error on the WebRequest:
objRequest = (System.Net.HttpWebRequest)WebRequest.Create("http://www.mysite.com/x.asp");
The error is: WebRequest does not exist in the current context.