dotnet / dotnet/wcf

Webservice SOAP ASMX downt work in iOS .net MAUI 8.0

Open
#5,617 3 comments 1 reaction 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
I try to consume a **SOAP WebService** at App **MAUI .net 8.0** on an **iOS** app the error is "dynamic code generation is not supported on this platform", even with AOT enabled. It works normally on Windows Machine connect to webservice.

Error at line 19 from MauiSoapConsumer/MainPage.xaml.cs
Repro project: https://github.com/markos-jr/MauiSoapConsumer

**To Reproduce**
Steps to reproduce the behavior:
For iOS:

Create a new .NET MAUI App.
Choose the "iPhone 15 SE iOS 17.4" simulator from the list iOS Simulators targets.
Enable AOT Compilation
Debug the app.
Observe the app launch in the simulator, but the debugger detach and report "dynamic code generation is not supported on this platform"

`
![image](https://github.com/user-attachments/assets/ee50d723-6b46-474e-8710-114046d58cd2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.