Web Connection
How to put "System.Net.ServicePointManager.Expect100Continue = false" Web Service Proxy Generator
Gravatar is a globally recognized avatar based on your email address. How to put "System.Net.ServicePointManager.Expect100Continue = false" Web Service Proxy Generator
  yan
  All
  Jun 24, 2019 @ 10:34pm

Hi,i'm a user of west-wind .net web service generator for vfp in china.

how can i put .net's config "System.Net.ServicePointManager.Expect100Continue = false" setting in the .dll?

now we couldn't conect to the server,http 417 error,the resultion from the web is put this in the .net config,but how to set this in west-wind Web Service Proxy Generator ?

thanks a lot !!!

Gravatar is a globally recognized avatar based on your email address. re: How to put "System.Net.ServicePointManager.Expect100Continue = false" Web Service Proxy Generator
  Rick Strahl
  yan
  Jun 25, 2019 @ 10:39am

You can't put it in the DLL, but since it's a global setting you can set it at any time in your application via wwDotnetBridge.

DO wwDotnetBridge && if not loaded yet
loBridge = GetwwDotnetBridge()
loBridge.SetStaticProperty("System.Net.ServicePointManager",;
                           "Expect100Continue",.F.)

Not sure why you would do this though. You'll want this to fire otherwise you may get incomplete repsonses from the server which won't continue on streamed response data.

Also, this is a global setting. This affects all .NET HTTP access so if you are doing anything else with .NET code that might use HTTP functionality make sure you reset this value or otherwise those other operations that might depend on that setting might fail.

+++ Rick ---

© 1996-2024