Hello,
I am not sure what is wrong, but here is what is going on: I have a
small Web Proxy server running to test real users using a proxy. It is
a basic one c#, seems to work. In my test application, I am trying to
connect to a Web Service going through the proxy. When I don't go
through it, obviously it works fine. Here is my code:
MyWebService service = new ProxyTest.MyWebService();
WebProxy proxyObject = new WebProxy("localhost:8889/",true);
if (requires auth)
{
NetworkCredential cred = new
NetworkCredential(this.txtProxyUsername.Text,
txtProxyPassword.Text,
txtProxyDomain.Text);
CredentialCache credCache = new CredentialCache();
credCache.Add(new Uri("localhost:8889/"), "Negotiate", cred);
proxyObject.Credentials = credCache;
}
service.Proxy = proxyObject;
========== this works fine ============
When I try to than consume a Web Method, it times out and in the proxy
server application, I get the following error:
Connection from 127.0.0.1:4852
System.Net.Sockets.SocketException: The requested name is valid and was
found in
the database, but it does not have the correct associated data being
resolved f
or
at System.Net.Dns.GetHostByName(String hostName)
at System.Net.Dns.Resolve(String hostName)
at ProxyHost.Class1.run() in c:\develop\proxyhost\class1.cs:line 53
Am I missing something?
Thanks in advance.
- Dan