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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:36:39+00:00 2026-05-11T03:36:39+00:00

Trying to make a web service call to an HTTPS endpoint in my Silverlight

  • 0

Trying to make a web service call to an HTTPS endpoint in my Silverlight application results in this error: ‘Could not find a base address that matches scheme https for the endpoint with binding WSHttpBinding. Registered base address schemes are [http]’

The same problem as was posted here:

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/4c19271a-f5e6-4659-9e06-b556dbdcaf82/

So, one of the suggestions was this: ‘The other issue might be that the cert name and the machine name don’t agree, and this is causing WCF to have fits. If this is the case, you can tell WCF to skip verification of the cert.’

Well, I do get a certificate error because this is just a demo server.

Here’s how I set up my client:

BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Mode = BasicHttpSecurityMode.Transport; _ws = new AnnotationService.AnnotationClient(binding, new EndpointAddress(myAddress)); 

How can I tell WCF to skip the verification?

  • 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. 2026-05-11T03:36:39+00:00Added an answer on May 11, 2026 at 3:36 am

    You might be able to achieve this in Silverlight by allowing cross-domain communication between the web server the hosts the Silverlight application and the remote WCF service.

    In that case you need to place a clientaccesspolicy.xml file at the root of the domain where the WCF service is hosted:

    <?xml version='1.0' encoding='utf-8'?> <access-policy>   <cross-domain-access>     <policy>       <allow-from http-request-headers='SOAPAction'>         <domain uri='http://*'/>       </allow-from>       <grant-to>         <resource path='/' include-subpaths='true'/>       </grant-to>     </policy>   </cross-domain-access> </access-policy> 

    Here’s what MSDN states about this approach:

    To allow access to an HTTPS service from any Silverlight control hosted over HTTP application, you need to put the <domain uri=”http://” />* element inside your <allow-from> element.

    I haven’t tried this myself but it could be worth a shot. Also be sure to check out the following resources for more details:

    • Making a Service Available Across Domain Boundaries
    • Configuring Web Service Usage in Silverlight Clients

    Disabling X.509 certificate validation in .NET

    For .NET applications this sample WCF configuration will disable validation of both whether the certificate is trusted and whether it is still valid on the client:

    <system.serviceModel>     <behaviors>       <endpointBehaviors>         <behavior name='DisableServiceCertificateValidation'>             <clientCredentials>                 <serviceCertificate>                     <authentication certificateValidationMode='None'                                     revocationMode='NoCheck' />                 </serviceCertificate>             </clientCredentials>         </behavior>       </endpointBehaviors>     </behaviors>     <client>       <endpoint address='http://localhost/MyService'         behaviorConfiguration='DisableServiceCertificateValidation'         binding='wsHttpBinding'         contract='MyNamespace.IMyService'         name='MyServiceWsHttp' />     </client> </system.serviceModel> 

    An alternative solution is to provide custom logic to validate the X.509 certificate provided by the service. In that case you will have to modifiy the configuration file according to the following:

    <system.serviceModel>     <behaviors>       <endpointBehaviors>         <behavior name='DisableServiceCertificateValidation'>             <clientCredentials>                 <serviceCertificate>                     <authentication certificateValidationMode='Custom'                                     customCertificateValidatorType='MyCertificateValidator, Client'                                     revocationMode='NoCheck' />                 </serviceCertificate>             </clientCredentials>         </behavior>       </endpointBehaviors>     </behaviors>     <client>       <endpoint address='http://localhost/MyService'         behaviorConfiguration='DisableServiceCertificateValidation'         binding='wsHttpBinding'         contract='MyNamespace.IMyService'         name='MyServiceWsHttp' />     </client> </system.serviceModel> 

    Then create a class that derives from X509CertificateValidator to implement your custom validation logic.

    public class MyCertificateValidator : X509CertificateValidator {     public override void Validate(X509Certificate2 certificate)     {         // Add custom validation logic         // Throw an exception to fail validation     } } 

    As always, you can find a more detailed example up on MSDN.

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

Sidebar

Ask A Question

Stats

  • Questions 70k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Not a script, but I have used TreeSize Free. May 11, 2026 at 12:50 pm
  • added an answer I put my cache-money config into /config/initializers/cache_money.rb: if RAILS_ENV !=… May 11, 2026 at 12:50 pm
  • added an answer Here is a helpful article to compare the language syntax… May 11, 2026 at 12:50 pm

Related Questions

I'm trying to make a simple C# web server that, at this stage, you
I'm trying to make a setup program for an ASP.NET web site. I need
Trying to make a make generic select control that I can dynamically add elements
Trying to make a MySQL-based application support MS SQL, I ran into the following
I'm trying to make a WCF service that will work with JSON-P (long-story short,
I am trying to send an HTTP request with the contents of a file
I’ve been trying to wrap my head around how to expose my domain objects
We are building an AbleCommerce 7 web store and trying to integrate it with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.