locked
WCF Webservice HTTPS webconfig help RRS feed

  • Question

  • User195343576 posted

    Hello,

    I have a working webservice that i am trying to move it over on a SSL connection. After some research and a long time playing around in the web.config I finaly don't have any web.config related errors but when accessing the https webservice when i try to access a Method all i get is a white blank page even when trying to access a none excisting method (https://.../webservice_ssl/wcfservice.svc/NotExists). I get white page not even a "Endpoint not found" like used to get when accessing a non existing method.

    I really need help :S

    Here is the web.config

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.web>
          <customErrors mode="Off"/>
        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          </assemblies>
        </compilation>
        <httpRuntime maxRequestLength="524288" />
        <authentication mode="None"></authentication>
      </system.web>
      <system.serviceModel>
    
          <services>
              <service name="ServiceApp.Service1" behaviorConfiguration="ServiceBehaviour">
                  <endpoint address=""
                            binding="basicHttpBinding"
                            bindingConfiguration="secureHttpBinding"
                            contract="ServiceApp.IService1"/>
    
                  <endpoint address="mex"
                            binding="mexHttpsBinding"
                            contract="ServiceApp.IService1" />
              </service>
          </services>
    
    
          <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
        <standardEndpoints>
          <webScriptEndpoint>
            <standardEndpoint name="" crossDomainScriptAccessEnabled="true" />
          </webScriptEndpoint>
        </standardEndpoints>
        <bindings>
          <!--<webHttpBinding>
            <binding name="StreamedRequestWebBinding" bypassProxyOnLocal="true" useDefaultWebProxy="false" hostNameComparisonMode="WeakWildcard" sendTimeout="10:15:00" openTimeout="10:15:00" receiveTimeout="10:15:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" transferMode="StreamedRequest">
              <readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" />
            </binding>
          </webHttpBinding>-->
            <basicHttpBinding>
                <binding name="secureHttpBinding">
                    <security mode="Transport">
                        <transport clientCredentialType="None"/>
                    </security>
                </binding>
            </basicHttpBinding>
        </bindings>
        
        <behaviors>
          <serviceBehaviors>
            <behavior name="ServiceBehaviour">
              <serviceMetadata httpGetEnabled="false" httpsGetEnabled="True" />
              <serviceDebug includeExceptionDetailInFaults="false"  />
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="web">
              <webHttp />
            </behavior>
          </endpointBehaviors>
        </behaviors>
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*" />
            <add name="Access-Control-Allow-Headers" value="Content-Type" />
          </customHeaders>
        </httpProtocol>
      </system.webServer>
    
    </configuration>
    
    

    Monday, January 14, 2013 12:07 PM

Answers