1
Reply

WebRequest problem with ISP

Todd Nichols

Todd Nichols

Apr 8 2011 10:07 AM
1.5k

I have an application that requires user validation.  I do the validation with a WebRequest to post the users computer information and the user entered validation code to a C# asp.net page that mixes and hashes the information and posts back for the validation state of the program for that user.

This usually works great.  I and a customer are in a location where the only internet access is through a wireless provider through which this will not work for some reason.  I get the exception "The remote server returned an error: (417) Expectation failed.

I read that adding System.Net.ServicePointManager.Expect100Continue = false; will fix this, but apparently I have a different issue becuase this makes no difference.

I have no idea how to fix this.  It wouldn't matter if it is this one provider that has a problem, but I'm guessing this can't be the only one and I need my customers to be able to validate regardless of their internet provider.

Please help!


Answers (1)