Forum Discussion
ASMX web service client .NET 6 (IOS)
Yes, I can use that. It works with Windows and Mac apps. But with iOS, I can call nothing.
I have this exception with each calls:
ex {System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.NSUrlSessionHandler.set_ServerCertificateCustomValidationCallback(Func`5 value) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags i…}
https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/http-stack
and also https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/web-services/asmx
I would check your older project and se if you had the info.plis with different info or different settings in your csproj
for example
```
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
``
- jona-applJan 14, 2022Copper Contributor
No, it doesn't work.
ATS is disabled and we use https (TLS 1.2).
<key>NSAllowsArbitraryLoads</key>
<true/>
My cproj: (My web services are called by DLLMedinect.dll)
https://pastebin.com/C8P0JA2V
My info.plist:
https://pastebin.com/UcZd7JC1
I created this also for avoid a lot of changes:
https://pastebin.com/tdtDU3C0- Johnmuller2255Jan 22, 2022Copper ContributorYes, I can use that. It works with Windows and Mac apps. But with iOS, I can call nothing.
I have this exception with each calls:
ex {System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.NSUrlSessionHandler.set_ServerCertificateCustomValidationCallback(Func`5 value) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags i…}
You can check more here at https://apkislove.com/- Poul_HornApr 05, 2023Copper Contributor
My exception is also the same.
ex {System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.NSUrlSessionHandler.set_ServerCertificateCustomValidationCallback(Func`5 value) at https://www.komprise.com/glossary_terms/data-migration/.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags i…}