Problem connecting through firewall

M

Mike

I'm still having trouble connecting to an internet site through a firewall.
Here is my 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")

myProxy.Credentials = New System.Net.NetworkCredential(sProxyUser,
Utils.GetOption(cmd, "ProxyPwd"))

'myRequest.Proxy = myProxy

myResponse = myRequest.GetResponse()

An exception is raised with the Message = "The remote server returned an
error: (401) Unauthorized". The request doesn't appear to be making it to
the final destination - the request doesn't show up in our web log.

Please help.
 
M

Mike

There isn't really a ' before myRequest.Proxy = myProxy. Don't know how
that got in the post. Please help.
 
M

Mike

I've been told that the firewall is a "Raptor Firewall". Does anyone out
there have experience using HTTP through a firewall with the Compact
Framework?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top