HighTechTalks DotNet Forums  

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

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss "The protocol 'https' is not supported" (client side call to WCF s in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
cserold
 
Posts: n/a

Default "The protocol 'https' is not supported" (client side call to WCF s - 04-06-2010 , 09:46 AM






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.HostedHttpRequestAs yncResult.End(IAsyncResult
result) +194
57
System.ServiceModel.Activation.HostedHttpRequestAs yncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
58 System.ServiceModel.Activation.HttpHandler.Process Request(HttpContext
context) +23
59
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +181
60 System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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.WebScriptS erviceHostFactory" %>

The System.ServiceModel.Activation.WebScriptServiceHos tFactory 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.