WCF Service Reference generates an empty reference.cs due to DuplexBinding

后端 未结 2 921
旧巷少年郎
旧巷少年郎 2021-01-29 03:24

I have WCF service. Here is configuration

  
    
      

        
相关标签:
2条回答
  • 2021-01-29 03:59

    The polling duplex HTTP binding is only supported by Silverlight clients. Since you're using svcutil to generate the reference, I assume you're building a "normal" (i.e., non-SL) client for the server, so that won't work.

    If you want to use a duplex binding on a non-Silverlight application, you can take a look at either the wsDualHttpBinding or netTcpBinding.

    0 讨论(0)
  • 2021-01-29 04:11

    I've solved that. Empty reference was due to some problems with ambiguous types. When I fixed it, reference.cs file generated well.

    So, solution is to look not only at errors, but at warnings too. I have found there all information what I need for my problem. Happy codding

    0 讨论(0)
提交回复
热议问题