-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Dotnet Maui Microsoft.Data.SqlClient Version="5.1.1" Android .Net 7 vs .Net 8 #92612
Comments
Hi @genifycom. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
What doesn't work? It doesn't load? Do you have stack traces or reproduction projects? I would be very surprised too if whatever issue you are having with is specific to MAUI UI projects. If you tried building and referencing it within a .NET Android app ( |
This is specific to MAUI ANDROID only. Create a MAUI Blazor Hybrid App .Net7 and MAUI Blazor Hybrid App .Net8 In Index.html add the following:
In the .Net 8 version, this will succeed in both Windows and Android. blazor.webview.js:1 A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) |
Tagging subscribers to this area: @DavoudEshtehari, @David-Engel, @JRahnama Issue DetailsDescriptionUsing .Net 8 with MAUI, Microsoft.Data.SqlClient works with both Windows and Android Using .Net 7 with MAUI, Microsoft.Data.SqlClient works with Windows but not with Android Steps to ReproduceNo response Link to public reproduction project repositoryNo response Version with bug7.0.92 Is this a regression from previous behavior?No, this is something new Last version that worked wellUnknown/Other Affected platformsAndroid Affected platform versionsAll Android versions Did you find any workaround?None Relevant log outputNo response
|
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger Issue DetailsDescriptionUsing .Net 8 with MAUI, Microsoft.Data.SqlClient works with both Windows and Android Using .Net 7 with MAUI, Microsoft.Data.SqlClient works with Windows but not with Android Steps to ReproduceNo response Link to public reproduction project repositoryNo response Version with bug7.0.92 Is this a regression from previous behavior?No, this is something new Last version that worked wellUnknown/Other Affected platformsAndroid Affected platform versionsAll Android versions Did you find any workaround?None Relevant log outputNo response
|
@steveisok does it look familiar? |
I don't believe it has much to do w/ the nuget package. @simonrozsival was this resolved by some of the .net 8 only changes you made? |
I think the SqlClient now works on Android thanks to the improvements we made to TLS streams in .NET 8. We backported several fixes into .NET 7 but it wasn't possible for all of them. For example the support for |
Simon, Is there any workaround in the meantime for .Net 7? I have tried the DangerousTrustProvider dotnet/SqlClient#1656 (comment) but this does not appear to work for me. Thanks |
.NET 7 is now out of support. The issue seems to be fixed on .NET 8, please upgrade to .NET 8. |
Description
Using .Net 8 with MAUI, Microsoft.Data.SqlClient works with both Windows and Android
Using .Net 7 with MAUI, Microsoft.Data.SqlClient works with Windows but not with Android
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
All Android versions
Did you find any workaround?
None
Relevant log output
No response
The text was updated successfully, but these errors were encountered: