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

六眼飞鱼酱① 提交于 2019-12-02 11:07:31

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!