WCF binding configuration apply only as default but as named it fails

孤街浪徒 提交于 2019-12-04 10:06:51

When you remove bindingConfiguration="BindingConfiguration", it uses default values not the values in your binding configuration.

The difference is:

transferMode="Streamed"

By default the transfer mode is buffered, so if the client expects buffered and the server uses streamed, then you get a bad request error.

We have recently found out that the initialization code used explicitly the default settings and thus ignored those in the web.config.

We removed that part of code and the setting from the web.config got applied.

A stupid error.

Thanks everybody for thier answers

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