Using SQL server with .NET MAUI, encountering TCP error 35 on Android phone

Jim Ng Ying Gee 0 Reputation points
2023-11-15T09:43:16.7533333+00:00

I am accessing a SQL server with .NET MAUI and encountering a TCP transport layer error 35 on my Android phone. This issue does not occur when accessing the SQL server using PC winUI. When testing, I found that read/write access of around 1000 bytes is okay, but when exceeding 1000 bytes, this problem occurs. See the following TCP error image for reference:

TCP error

Developer technologies .NET .NET MAUI
SQL Server Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-16T07:11:42.6133333+00:00

    Hello,

    This issue was filed in the SqlServer GitHub repo. See: SQL Server pre-login handshake failed Android 5,6,8.1 #1656.

    You can try to use this workaround from devmartinto fix this issue.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.