Skip to content

C#客户端 常见问题

Yenan Wang edited this page Sep 29, 2016 · 1 revision

Message:System.Data.SqlClient.SqlException (0x80131904): The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.

  • 在SQL Server中(无论32位还是64位),SQL语句、自定义函数和存储过程所支持的参数最大容量为2100个。当所要执行的SQL语句、自定义函数、存储过程中的参数超过上述限制时,请修改程序逻辑以规避上述异常。请参见SQL Server 的最大容量规范

Message:MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host 'xxx' for user 'xxx' using method 'mysql_native_password' failed with message: Reading from the stream has failed. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.

  • 请检查Web Server的CPU占用率,客户端是否开启了过多连接,另外超时设置过短也会引起验证异常。

低版本的ADO.NET driver for MySQL对100毫秒以下的时间精度支持有问题,请使用6.7以上的驱动版本。

Clone this wiki locally