Skip to content

MAUI with CSLA 5.x #4231

Answered by MGMaciej
MGMaciej asked this question in Questions
Sep 25, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@rockfordlhotka , thank you for the quick reply. I had been struggling with this setup for a while. After your response, I decided to give it one more try, and this time, I was finally successful.

Here is what helped in my case:
UseTextSerialization = true on the server controller...

[Route("api/[controller]")]
[ApiController]
public class DataPortalController : Csla.Server.Hosts.HttpPortalController
{
    public DataPortalController()
    {
        // Do not enable this only on server!
        UseTextSerialization = true;
    }

    [HttpGet]
    public string Get() => "DataPortal is running from MAUI";
}

And UseTextSerialization = true in the MauiProgram...

    {
        public static …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rockfordlhotka
Comment options

Answer selected by rockfordlhotka
Comment options

You must be logged in to vote
1 reply
@rockfordlhotka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants