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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:52:17+00:00 2026-06-14T21:52:17+00:00

I have a WCF service running on an Amazon cloud server. Sometimes on some

  • 0

I have a WCF service running on an Amazon cloud server.
Sometimes on some clients – which are long-running processes which poll the service every 5 minutes – the following exception occurs:

System.ServiceModel.Security.SecurityNegotiationException: Could not
establish trust relationship for the SSL/TLS secure channel with
authority ‘myservicehost.com’. —> System.Net.WebException:
The underlying connection was closed: Could not establish trust
relationship for the SSL/TLS secure channel. —>
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.

This looks like there’s a problem with the SSL certificate, but I cannot find out why. The certificate was issued by DigiCert.

The strange thing is that always at startup of the client, the WCF call succeeds. Then, as I wrote, every 5 minutes the call is repeated. This works fine until some time between 30 minutes and 8 hours has passed. From then on it doesn’t work anymore and the above exception occurs on every subsequent call. This state can then remain for a couple of days.

In some rare cases, after 2/3 days, it works again for a short period, before the exceptions start coming again.

When I restart the client process, it’s fine again for some time until the above issue starts over and over again.

There are plenty of messages here at SO with this title but I did not find any related to my special issue. In most other cases, the exception occurs always and not on an irregular basis. So can anyone help or try to point me in some direction?

  • 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-14T21:52:18+00:00Added an answer on June 14, 2026 at 9:52 pm

    Finally after researching a long time, I found the solution. In the same process in our software another module was running at the same time which did FTP requests and which contained the following code:

    ServicePointManager.ServerCertificateValidationCallback =
        new RemoteCertificateValidationCallback( myCertificateValidation );
    

    myCertificateValidation was a callback method doing a custom validation. Unfortunately, in my case, it always returned false. This lead to the above exception. Because the FTP module didn’t run all the time, the error was very hard to find.

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

Sidebar

Related Questions

I have an WCF-service running on an server, and occasionally(1-2 times every month) it
I have a WCF service running on my machine, which get lauched while I
I have a WCF service which works on my dev machine running IIS 7,
I have WCF service running on netTcpBinding, everything fine I have some more functions
I have a IIS-Hosted WCF service running on one server and a windows service
I have a wcf self-hosted service running as windows service, serving multiple win/web clients
Lets say I have one WCF service that is running on one server. Now
I have a WCF service running on the sharepoint server that will generate a
Heres my situation: I have a RESTful WCF service running on my server, the
I have a WCF service which was running fine on a http binding. I've

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.