Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Expect100Continue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 09 Oct 2004 17:02 GMT
This property of the System.Net.ServicePointManager class is not available
in the Compact Framework.  I apparently need it for one client of ours.
They have a proxy server and we are getting a "417 Expectation Failed" error
when posting data.

Any ideas?  Any way to tell the .NET CF to not expect a "100 - Continue"
message when posting data?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemnetservicepointmanagermemberstopic.asp

"Peter Huang" - 11 Oct 2004 09:31 GMT
Hi Mike,

Now I am researching the issue and I will update you with new information
ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Huang" - 12 Oct 2004 09:40 GMT
Hi

Now I am involving other person in this field. And we will update you with
new information ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Ercan Turkarslan [MS] - 13 Oct 2004 19:19 GMT
Hi Mike,

HTTP error "417 Expectation Failed" is received, due proxy settings of your
web services connection. Unfortunately, Expect100Continue will not solve
your problem.

Are you setting proxy properly?

Could you send me the proxy setting code?

Thanks

Ercan Turkarslan (Siemens Business Services Inc.)
Microsoft Mobile Devices Division Developer Support
Mike - 13 Oct 2004 23:20 GMT
I am able to do HTTP Gets, I only get the error when doing a POST.  Also,
the same code works at other locations.

> Hi Mike,
>
[quoted text clipped - 11 lines]
> Ercan Turkarslan (Siemens Business Services Inc.)
> Microsoft Mobile Devices Division Developer Support
Ercan Turkarslan [MS] - 13 Oct 2004 23:50 GMT
Could you clarify what the other locations are?

I still need to see how you are setting the proxy.

Thanks

Ercan Turkarslan (Siemens Business Services Inc.)
Microsoft Mobile Devices Division Developer Support
Mike - 14 Oct 2004 16:28 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.