Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8682677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:50:22+00:00 2026-06-12T21:50:22+00:00

As the title says, i need to set this flag to false for my

  • 0

As the title says, i need to set this flag to false for my app, like so:

 ServicePoint.Expect100Continue = false;

However neither ServicePoint nor ServicePointManager are accessible, and i can’t find another way to set this property. Also, there is no app.config so setting it via configuration is also not possible.

If i do no set this to false, the flag is sent in the request and a CommunicationException occurs.

I cannot change server code, i am only a consumer of server data.

The service is added with the “Add Service Reference” dialog. Any method call results in:

The underlying connection was closed: An unexpected error occurred on a receive.

When i call the same service, added with “Add Service Reference” from a console application, there is the same error. The reason is the Expect100Continue Attribute. If i remove it using the usual methods, it works in the console app.

So, i’d like to know what the equivalent is for Windows Store apps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:50:23+00:00Added an answer on June 12, 2026 at 9:50 pm

    I ended up taking the auto-generated classes from “add service reference” and serializing them myself. I then use HttpClient to make my calls. It is possible to set the ExpectContinue flag there like this:

     using (HttpClient client = new HttpClient())
     {
          client.DefaultRequestHeaders.ExpectContinue = false;
    
          ....code!
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like the title says, I just need something to migrate a set of tables
Like the title says, we need to set up WCF services between a .NET
Like the title says, I need a way to detect if the build is
So, just like the title says, I need to create an application that gets
Like the title says I need to write a function that will sort a
Like the title says, I need to use php (wordwrap or whatever works) to
Just like the title says I am having problems combining two classes. Altough this
As question title says, I need to know how to set the mouse cursor
Like the title says I need to have a final result where on one
so as the title says i need to float my div with absolute position

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.