Can you post some code... from here I can only suggest this:
System.Net.WebProxy proxy = new System.Net.WebProxy("address");
proxy.Credentials = new System.Net.NetworkCredential("user", "password",
"domain");
System.Net.GlobalProxySelection.Select = proxy;
HTH
Erick Sgarbi
www.blog.csharpbox.com
> Hi,
> I am using events in .Net remoting Scenario, So server process can invoke
[quoted text clipped - 9 lines]
>
> Thanks
mili - 09 Aug 2005 05:10 GMT
Thanks Erick,
This is working for me.
Regards
mili
> Can you post some code... from here I can only suggest this:
>
[quoted text clipped - 20 lines]
> >
> > Thanks
Buck - 13 Jul 2006 15:24 GMT
How can I write NetworkCredential("user", "password",
"domain") without puting my password in the code. Can I pull this from
my computer?
Raj Gujar - 26 Jul 2006 16:19 GMT
I was getting the Same Error , I used this code an it fixed it
Dim wreq As WebRequest
Dim wres As WebResponse
Dim SR As StreamReader
Dim content As String
Dim UserName As String
Dim Password As String
Dim proxy = New System.Net.WebProxy("http://yourproxy-address
with :port")
UserName = "userid"
Password = "password"
proxy.Credentials = New System.Net.NetworkCredential(UserName,
Password, domain)
System.Net.GlobalProxySelection.Select = proxy
wreq = WebRequest.Create(url)
wreq.PreAuthenticate = True
wreq.Proxy = proxy
Dim myWebResponse As WebResponse = wreq.GetResponse()
SR = New StreamReader(myWebResponse.GetResponseStream(), True)
content = SR.ReadToEnd()
SR.Close()