win8发布 wcf问题

WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc files. You can teach it in two steps

 

  • Add a new MIME type:

    Extension: .svc        MIME type: application/octet-stream

 

 

  •   Add a new Managed HTTP Handler:    

    Request path: *.svc       Type: System.ServiceModel.Activation.HttpHandler       Name: svc-Integrated

 

 

 

同时安装IIS时需要勾选http activation选项 

posted @ 2014-05-28 14:39  smart-liu  阅读(150)  评论(0编辑  收藏  举报