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 731815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:04:16+00:00 2026-05-14T07:04:16+00:00

I have a WCF Service with the following requirements: a) The client requests a

  • 0

I have a WCF Service with the following requirements:
a) The client requests a file from the server which is transferred as a Stream. Files may be 100MB or larger. I need streaming or chucking or whatever to make sure that IIS is not loading the whole package into memory before starting to send it.
b) The client will transfer an ID to identify the file to be downloaded. The user should be authenticated by providing username/password.
c) While the username/password part of the communication needs to be encrypted, encryption of the downloaded file is optional for our use case.

My other services, where I am returning smaller files, I am using the following binding:

<ws2007HttpBinding>
    <binding name="ws2007HttpExtern" maxReceivedMessageSize="65536000">
      <security mode="Message">
        <message clientCredentialType="UserName" />
      </security>
    </binding>        
  </ws2007HttpBinding>

But, as I said, that is no good for streaming (Message encryption needs the complete message to encrypt and that is not the case when streaming).

So, I asked Microsoft support and I got more or less the following proposal:

<bindings>
  <basicHttpBinding>
    <binding name="basicStreaming" 
      messageEncoding="Mtom" transferMode="StreamedResponse">
      <security mode="Transport">
        <transport clientCredentialType="Basic" />
      </security>
    </binding>
</bindings>

<services>
  <service behaviorConfiguration="MyProject.WCFInterface.DownloadBehavior"
    name="MyProject.WCFInterface.DownloadFile">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicStreaming"
      contract="MyProject.WCFInterface.IDownloadFile" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>    
</services>

<behaviors>
  <serviceBehaviors>
    <behavior name="MyProject.WCFInterface.DownloadBehavior">
      <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>

When I use this, I get the following error message:

Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http].

I am using the Web Development Server so far (for production IIS7).

I have two questions.
a) How would you configure WCF to achieve the goal?
b) If the MS proposal is good: What I am doing wrong, the error message does not really help me.

Thanks.

  • 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-05-14T07:04:16+00:00Added an answer on May 14, 2026 at 7:04 am

    This error is usually related to hosting WCF services on IIS 7. WCF is not supported by default so here are some troubleshooting you can perform.

    1. Have you managed to host other WCF services on your IIS 7? You may want to look into adding the WAS service feature on your IIS 7 server. Here is a good tutorial.

    2. Https requires that you setup IIS with a proper SSL certificate and add a HTTPS binding to your site. Here is how.

    As far a I know, the MS proposed solution works. I used the same approach and it works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, I have to following problem. I have a WCF Service which runs under
I have a the following server side app.config for a WCF service: <system.serviceModel> <bindings>
I have deployed WCF service on service on server and facing following exception. System.Security.SecurityException:
I have a wcf service with the following web.config in the server. <?xml version=1.0
I have WCF service and Silverlight Client. I use PollingDuplexElement. On server side I
Given that I have the following WCF service: class LookUpService { public List<County> GetCounties(string
I have a WCF service, hosted in IIS returning the following error (when trying
I have the following data model: I am writing a WCF service that needs
I have following method in wcf webenabled service Public Person AddPerson(Person p); As of
I am implementing a WCF web service which interacts with a client whose code

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.