Wcf 不会触发Global.asax方法

Wcf 不会触发Global.asax方法,wcf,ssl,tls1.2,global-asax,autostart,Wcf,Ssl,Tls1.2,Global Asax,Autostart,将SSL添加到我的WCF服务后,global.asax方法,如aplication\u Start或Application\u BeginRequest停止触发。服务本身正常启动,无一例外。下面添加了新代码(以及IIS管理器中的某些配置): <system.serviceModel> <services> <service name="SomeService.Service" behaviorConfiguration="secureBeha

将SSL添加到我的WCF服务后,
global.asax
方法,如
aplication\u Start
Application\u BeginRequest
停止触发。服务本身正常启动,无一例外。下面添加了新代码(以及IIS管理器中的某些配置):

<system.serviceModel>
    <services>
        <service name="SomeService.Service" behaviorConfiguration="secureBehavior">                       
            <endpoint 
                address="" 
                binding="basicHttpBinding" bindingConfiguration="secureHttpBinding" 
                contract="SomeService.IService" />
            <endpoint 
                address="mex" binding="mexHttpsBinding" 
                contract="IMetadataExchange" />
        </service>          
    </services>
    <bindings>
        <basicHttpBinding>
            <binding name="secureHttpBinding">
                <security mode="Transport">
                    <transport clientCredentialType="None" />
                </security>
            </binding>
        </basicHttpBinding>      
    </bindings>
    <behaviors>
        <serviceBehaviors>
            <behavior name="secureBehavior">
                <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
                <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
        </serviceBehaviors>
    </behaviors>    
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>


Buddy,您是否尝试通过https协议调用服务?据我所知,默认情况下,即使Basichttpbinding未配置,该服务也通过HTTP协议受支持。我建议您检查客户端调用是否基于https协议。尝试过。仍然没有。Buddy,您是否尝试通过https协议调用服务https协议?据我所知,即使Basichttpbinding没有配置,默认情况下该服务也通过HTTP协议支持。我建议您检查客户端调用是否基于https协议。尝试过了。仍然没有任何结果