The other locations are other hospitals around the U.S. One is in Baton
Rouge, LA.
Here is the code I use to create a WebProxy object and assign it to a
WebRequest object:
myUri = New Uri(Utils.GetOption(cmd, "ProxyServer"))
' Associate the new Uri object to the myProxy object.
myProxy.Address = myUri
sProxyUser = Utils.GetOption(cmd, "ProxyUser")
If sProxyUser <> "" Then
sProxyDomain = Utils.GetOption(cmd, "ProxyDomain")
If sProxyDomain = "" Then
MyCred = New System.Net.NetworkCredential(sProxyUser, Utils.GetOption(cmd,
"ProxyPwd"))
Else
MyCred = New System.Net.NetworkCredential(sProxyUser, Utils.GetOption(cmd,
"ProxyPwd"), sProxyDomain)
End If
myProxy.Credentials = MyCred
myRequest.Credentials = MyCred
End If
myRequest.Proxy = myProxy
> Could you clarify what the other locations are?
>
[quoted text clipped - 4 lines]
> Ercan Turkarslan (Siemens Business Services Inc.)
> Microsoft Mobile Devices Division Developer Support
Ercan Turkarslan [MS] - 14 Oct 2004 19:14 GMT
Hi Mike,
Your proxy definition looks like correct.
Unfortunately, current version of .NET CF does not support NTLM
authentication. Could you double check which authentication does the proxy
server use?
Are you connecting from a .NET CF application at other locations?
Thanks
Ercan Turkarslan
Mike - 14 Oct 2004 20:29 GMT
There is no authentication going on because the user does not supply a
username or password and the HTTP GET's go through.
> Hi Mike,
>
[quoted text clipped - 9 lines]
>
> Ercan Turkarslan
Ercan Turkarslan [MS] - 14 Oct 2004 22:21 GMT
Hi Mike,
According to your code you are retrieving ProxyUser and ProxyDomain values
from a class called Utils. And you are creating NetworkCredentials based on
those values. So your proxy definition contains uses a username and
password.
I would be grateful if you could check what is the authentication protocol
the proxy server is using.
I would appreciate if you could also take the proxy server out of the
picture and try to access the Web Services Server without proxy. Are you
able to successfully connect to the Web Services Server in that case?
Could you also tell me whether you are using .NET CF on other locations
from which you can access?
Thanks
Ercan Turkarslan
a-ercant@microsoft.com
Mobile Devices Division Developer Support
Mike - 14 Oct 2004 23:40 GMT
It only does the NetworkCredentials If sProxyUser <> "" and at the hospital
in question, that variable is blank, so it is not assigning credentials.
I will try to find out the authentication protocol but it may take a while -
I don't know anyone who knows that information but I might be able to find
out.
I'm not trying to access a Web Services Server - it's acessing a
Linux/Apache server.
The code works without a proxy server and with other proxy servers, I'm
trying to get it to work with 1 particular proxy server.
Yes, I am using .NET CF at other locations successfully with and without
proxy servers.
> Hi Mike,
>
[quoted text clipped - 20 lines]
>
> Mobile Devices Division Developer Support
Ercan Turkarslan [MS] - 18 Oct 2004 20:11 GMT
Hi Mike,
If the code works fine without the Proxy Server as you have stated, we
should concentrate on the Proxy Server first.
What is the Proxy Server?
What are the authentications supported by the Proxy Server? Current version
of .NET CF only supports digest authentication.
Does using the proxy server cause timeout?
Thanks
Ercan Turkarslan
Microsoft Mobile Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.