WCF over SSL - 404 error

后端 未结 10 2287
执笔经年
执笔经年 2020-12-13 12:58

Okay, I must be missing something utterly simple here, because I\'ve been googling for days, and looking at dozens of answers there, and here on SO, and i just CANNOT get th

10条回答
  •  余生分开走
    2020-12-13 13:23

    I just spent a few hours on this and it turned out my problem was the service name

    
          
            
          
        
    

    had to exactly match the similar entry in my *.svc file.

    <%@ ServiceHost 
        Language="C#" 
        Debug="true" 
        Service="TimberMill.Web.Data.LogReceiverService, TimberMill.Web"
        Factory="Autofac.Integration.Wcf.AutofacServiceHostFactory, Autofac.Integration.Wcf"
        CodeBehind="LogReceiverService.svc.cs" 
    %>
    

    I'm not sure if it was related to my use of Autofac. It all was working fine under plain HTTP. Failed under HTTPS though.

    Well I think so, I don't want to disturb anything now by testing in more detail lest I anger the WCF-Config gods and my config breaks again. YMMV.

提交回复
热议问题