M
Mike
"Unable to read data from the transport connection" error received when
trying to connect to a website through a firewall that requires a username,
password, and domain.
The code works from behind firewalls that don't require domains.
The customer can connect to the website in Pocket Internet Explorer. A
dialog comes up that asks for user, password, and domain. How can we get
this dialog to come up in our VB .NET application?
Windows Mobile 2003 SE operating system
Here is the code:
myRequest = System.Net.WebRequest.Create(RsURL)
myRequest.Timeout = 30000
myProxy = New System.Net.WebProxy
myUri = New Uri(Utils.GetOption(cmd, "ProxyServer"))
' Associate the new Uri object to the myProxy object.
myProxy.Address = myUri
sProxyUser = Utils.GetOption(cmd, "ProxyUser")
sProxyDomain = Utils.GetOption(cmd, "ProxyDomain")
myNetworkCred = New System.Net.NetworkCredential(sProxyUser,
Utils.GetOption(cmd, "ProxyPwd"), sProxyDomain)
myProxy.Credentials = myNetworkCred
myRequest.Credentials = myNetworkCred
myRequest.Proxy = myProxy
trying to connect to a website through a firewall that requires a username,
password, and domain.
The code works from behind firewalls that don't require domains.
The customer can connect to the website in Pocket Internet Explorer. A
dialog comes up that asks for user, password, and domain. How can we get
this dialog to come up in our VB .NET application?
Windows Mobile 2003 SE operating system
Here is the code:
myRequest = System.Net.WebRequest.Create(RsURL)
myRequest.Timeout = 30000
myProxy = New System.Net.WebProxy
myUri = New Uri(Utils.GetOption(cmd, "ProxyServer"))
' Associate the new Uri object to the myProxy object.
myProxy.Address = myUri
sProxyUser = Utils.GetOption(cmd, "ProxyUser")
sProxyDomain = Utils.GetOption(cmd, "ProxyDomain")
myNetworkCred = New System.Net.NetworkCredential(sProxyUser,
Utils.GetOption(cmd, "ProxyPwd"), sProxyDomain)
myProxy.Credentials = myNetworkCred
myRequest.Credentials = myNetworkCred
myRequest.Proxy = myProxy