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

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,143 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,703 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,181 Reputation points Microsoft Vendor
    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.