WCF service returning 404 on method requests

后端 未结 8 1713
-上瘾入骨i
-上瘾入骨i 2020-12-09 03:06

I have a WCF service page running only WebGets/WebInvokes over SSL - it works fine on my local machine (self signed cert). On production, however, I can reach service.svc (a

8条回答
  •  独厮守ぢ
    2020-12-09 03:30

    As you mentioned you can access your service by .svc extension service.svc but not in REST format service.svc/AnyRequest, the problem must be in routing integration.

    add this to your web.config

     
      
        
      
      
        
      
      
    

    In the IIS 6 The cause of this error must be Check that file exists setting of svc extention, make sure "Check that file exists is unchecked". For more information see IIS Hosted Service Fails.

提交回复
热议问题