Benjamin

Benjamin

  • NA
  • 1
  • 0

WCF Error: https not supported

Dec 15 2009 8:39 AM
Hi guys,

I created a WCF service and enabled there https. Now if I call for testing purposes http://localhost:3856/Service1.svc with my webbrowser I get the message that "https is not supported". Do you have an idea why it is not supported? I'm quite confused and can't figure out why my solution does not work. As Server I do use the standard ASP.Net Developement Server which is included in Visual Studio 2008.

Best Regards,

Benjamin
 
  1. <system.webServer>  
  2.         <validation validateIntegratedModeConfiguration="false"/>  
  3.         <modules>  
  4.             <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
  5.         </modules>  
  6.         <handlers>  
  7.             <remove name="WebServiceHandlerFactory-Integrated"/>  
  8.             <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
  9.             <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
  10.             <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
  11.         </handlers>  
  12.     </system.webServer>  
  13.     <system.serviceModel>  
  14.         <services>  
  15.             <service name="Gateway.Service1" behaviorConfiguration="Gateway.Service1Behavior">  
  16.                 <!-- Service Endpoints -->  
  17.                 <endpoint address="https://localhost:999/service1.svc" binding="basicHttpBinding" bindingConfiguration="Binding1" contract="Gateway.IService1">  
  18.    
  19.                     <identity>  
  20.                         <dns value="localhost"/>  
  21.                     </identity>  
  22.                 </endpoint>  
  23.                 <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>  
  24.             </service>  
  25.         </services>  
  26.     <bindings>  
  27.        <basicHttpBinding>  
  28.           <binding name="Binding1">  
  29.              <security mode="Transport">  
  30.                 <transport clientCredentialType="None" />  
  31.                 <message clientCredentialType="Certificate" />  
  32.              </security>  
  33.           </binding>  
  34.        </basicHttpBinding>  
  35.     </bindings>  
  36.         <behaviors>  
  37.    <serviceBehaviors>  
  38.     <behavior name="Gateway.Service1Behavior">  
  39.      <serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://localhost:999/Service1" />  
  40.      <serviceDebug includeExceptionDetailInFaults="false" />  
  41.     </behavior>  
  42.    </serviceBehaviors>  
  43.   </behaviors>  
  44.     </system.serviceModel>  
  45. </configuration> 
 


Answers (1)