Returning DataTables in WCF/.NET

前端 未结 8 1601
广开言路
广开言路 2020-12-01 05:00

I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good pract

8条回答
  •  星月不相逢
    2020-12-01 05:45

    You probably blew your quota - the datatable is larger than the allowed maximum packet size for your connection.

    You probably need to set MaxReceivedMessageSize and MaxBufferSize to higher values on your connection.

提交回复
热议问题