-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello there! How to fix the error — The incoming tabular data stream (TDS) protocol stream is incorrect. The MARS TDS header contained errors? #1263
Comments
Seems like a duplicate of dotnet/SqlClient#85 |
Yes, this is a known issue and is tracked under dotnet/SqlClient#85. If you have a .NET Framework application, please try enabling below app context switch and let us know.
@mairaw could you please transfer this issue to dotnet/SqlClient repository? |
Hi, Is there Something to update ou modify ? |
Hi @novitito Please reference Microsoft.Data.SqlClient v1.1.3 or v2.0.1+ in your application to get fix (PR #557 and PR #550) for same issue in .NET Core applications. If you continue to encounter issue with the updated driver, please wrap a repro application with latest driver version and provide us in Issue #85 in dotnet/sqlclient repository. |
@cheenamalhotra AppContext.SetSwitch("Switch.System.Data.SqlClient.MakeReadAsyncBlocking", true) - not help. The error is repeated. |
Let me clearly specify again as most information is in dotnet/SqlClient#85 For .NET Framework application: If your application is using System.Data.SqlClient (.NET Framework), you need to use AppContext switch as under: whereas if you're using Microsoft.Data.SqlClient (.NET Framework), you need to use this AppContext switch: For .NET Core application: Use System.Data.SqlClient v4.8.2, OR use Microsoft.Data.SqlClient v1.1.3 or above. Could you please confirm what runtime your application is using and if trying above options are not working in your case? |
I'm not sure I follow 🤔 |
@cheenamalhotra we tested our app on a single server. The results in the pictures. There are fewer errors, but they are there. Testing other servers. There are options for the fix? Errors before correction 158, after 25. It should be zero. |
@cheenamalhotra { |
We encounter an error from time to time: The incoming tabular data stream (TDS) protocol stream is incorrect. The MARS TDS header contained errors. Tool versions: .net 4.8, sql server 13.0.5820.21. This problem is Microsoft. Data. SqlClient of all versions, and with System. Data. SqlClient 4.8.2. We tried all the solutions that are listed on the forums. Not help. Other developers also have this problem. Our users suffer from this. We sincerely ask you to pay attention to this problem as soon as possible and report a solution. Thanks!
The text was updated successfully, but these errors were encountered: