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

  • Home
  • SEARCH
  • 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 7613431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:09:12+00:00 2026-05-31T02:09:12+00:00

Actually I’m having problems implementing both HTTPS and compression on the same WCF Web

  • 0

Actually I’m having problems implementing both HTTPS and compression on the same WCF Web Service, but the problem is easier to explain using BinaryMessageEncoding, and the cause is propably the same.

I have configured both the service and the client like this:

<customBinding>
  <binding name="OwnBinding" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
    <binaryMessageEncoding>
      <readerQuotas maxDepth="999999999" maxStringContentLength="999999999" maxArrayLength="999999999" maxBytesPerRead="999999999" maxNameTableCharCount="999999999" />
    </binaryMessageEncoding>
    <httpsTransport maxBufferSize="999999999" maxReceivedMessageSize="999999999" authenticationScheme="Anonymous" proxyAuthenticationScheme="Anonymous" useDefaultWebProxy="true"/>
  </binding>
</customBinding>

But it keeps giving me following CommunicationException:

An error occurred while making the HTTP request to https://localhost:8036/Services/FileService. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

InnerException: {“The underlying connection was closed: An unexpected error occurred on a send.”}

I know it suggest this is due to a invalid sertificate, and I have tried this also with this trick, but it still doesn’t work. (I don’t have a sertificate, and really don’t need one. I just need SSL encryption and compression. No need to authenticate either server or client.

ServiceTraceViewer doesn’t show anything useful either.

  • 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-31T02:09:13+00:00Added an answer on May 31, 2026 at 2:09 am

    You need a server certificate in order to enable HTTPS. This is a requirement since the Transport Level Security (TLS) protocol uses asymmetric cryptography in order to exchange the session key with the client through a secure channel.

    You can create a temporary self-signed certificate to use during development and install it in the CurrentUser\My store using the makecert utility:

    makecert -n "CN=MyTestCertificate" -r -ss my
    

    Then, you can easily configure your WCF service to use that certificate using the <serviceCertificate> element in a custom service behavior:

    <behaviors>
      <serviceBehaviors>
        <behavior name="SecureService">
          <serviceCredentials>
            <serviceCertificate findValue="CN=MyTestCertificate" />
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    

    If you’re hosting your service in IIS, you also have to enable SSL on the web site where the service is running before you’ll be able to communicate with it through HTTPS.

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

Sidebar

Related Questions

Actually I am using 2 Tabs.Both of the tab is having different activity.Now when
actually I can not find an exact title for this problem. But I can
Actually, i have started work on creating a web service in Python and C#(.NET
Actually, I am facing a problem in Android. I am creating an application that
Actually I am having 11 columns in my Database(Sqlite).Now I am increasing the number
Actually I have retrieved image saved on facebook but i am not getting how
actually, i'm developing a web template using ASP.NET and C#. i have a listview
Actually i am trying to implement the code on the following website http://www.mathworks.com/matlabcentral/fileexchange/28300 but
Actually, I have created account in 000webhost.com free hosting, I uploaded system successfully. But
Actually I am attempting to extract the data from a PDF file but I

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.