Different behavior between net8.0-android34.0 and net8.0-windows10.0 during TSL handshake
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 579
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 257
Description
### Android framework version
net8.0-android
### Affected platform version
VS2022, 17.11.0, Xamarin 17.11.0.93, System.ServiceModel 6.0.0
### Description
I am attaching a VS22 project with which you can reproduce the problem.
[MAUITestCase.zip](https://github.com/user-attachments/files/16823593/MAUITestCase.zip)
It is a MAUI project, on net8 and is trying to connect to a WCF service that uses SSL.
The problem is that running the application on windows or on Android have different behaviour inside the System.ServiceModel library
unfortunately i cannot step into the NET libraries and debug for some other reason (another case reported on visual studio support), but we still have an inconsistency between NET versions.
The other attachments that you will find are the following:
the packets exchanged during line 46 execution in the desktop version recorded by WireShark
the packets exchanged during line 46 execution in the android version recorded by WireShark
the complete exception thrown
Please let me know if you need more information
[desscktop.txt](https://github.com/user-attachments/files/16823599/desscktop.txt)
[mobile.txt](https://github.com/user-attachments/files/16823600/mobile.txt)
[URI.txt](https://github.com/user-attachments/files/16823601/URI.txt)
### Steps to Reproduce
1. Load the project on visual studio
2. run the project on windows to confirm that there is no exception thrown on line 46 of file MAUITestCase\App.xaml.cs.
3. repeat by running on android to catch the URI exception from line 46 as in the image:

### Did you find any workaround?
no
### Relevant log output
```shell
Please look into description
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.