"The protocol 'https' is not supported" (client side call to WCF s

Discussion in 'ASP .Net Web Services' started by cserold, Apr 6, 2010.

  1. cserold

    cserold Guest

    Hello,

    I am making calls to WCF services in my ASP.NET 3.5 application from client
    side javascript. Everything works fine when developing locally but when the
    site is deployed to the production server and https is required the calls no
    longer work. The following error is getting thrown:
    54[InvalidOperationException: The protocol 'https' is not supported.]
    55 System.ServiceModel.AsyncResult.End(IAsyncResult result) +11531006
    56
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult
    result) +194
    57
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
    58 System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext
    context) +23
    59
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
    60 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
    completedSynchronously) +75

    I know it has something to do with this declaration in my .svc file:

    <%@ ServiceHost Language="C#" Debug="false"
    Service="AJAX.DocumentLibraryService"
    Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" %>

    The System.ServiceModel.Activation.WebScriptServiceHostFactory is
    automatically creating an endpoint based on wsHttpBinding and this doesn't
    support https.

    I wish there was another "Factory" that implemented Https. Can anybody
    provide me with the best approach to implement this?

    Thanks,
    Craig
     
    cserold, Apr 6, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Borr
    Replies:
    2
    Views:
    6,453
    Alvin Bruney
    Nov 10, 2003
  2. Dinçer
    Replies:
    1
    Views:
    521
    Bopoo
    Feb 11, 2005
  3. =?Utf-8?B?bGFuZW0=?=
    Replies:
    3
    Views:
    29,587
    Eliyahu Goldin
    Mar 30, 2005
  4. alan
    Replies:
    2
    Views:
    6,870
  5. Simon
    Replies:
    5
    Views:
    1,006
    Steven Cheng [MSFT]
    Apr 30, 2008
  6. Simon
    Replies:
    0
    Views:
    1,272
    Simon
    Oct 13, 2009
  7. Cindy Lee
    Replies:
    1
    Views:
    3,170
    Mr. Arnold
    Mar 19, 2010
  8. David Shorthouse

    server-side vbscript call with javascript client-side

    David Shorthouse, Feb 2, 2005, in forum: ASP General
    Replies:
    2
    Views:
    491
    Mark Schupp
    Feb 3, 2005
Loading...