Replies: 8 comments 8 replies
-
In my experience this often means that the server is returning a 500 or other unexpected result, so the data portal on the client isn't actually getting a result from the data portal on the server, but rather from the web server (or some other middleware). If you are using the Android emulator, remember that it can't access your PCs localhost. I think there might be ways around that? I usually just host the appserver in Azure so it has a public IP address to solve the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi Rocky, Thx for your answer. Actually, I'm using an Android Mobile (a real one) to access the appserver who is hosted by IIS on my PC. In short, with the application running on Windows, I can have access to the appserver and everything works well but with the same application running on Android mobile, i'm still keeping the error : Unable to read beyond the end of the stream. However, the appserver can be reached by the android mobile (using the dataportal URL into chrome like below). I feel like I'm missing something obvious. Thanks a lot for you help, Best regards, |
Beta Was this translation helpful? Give feedback.
-
Just in case to complete my previous post, i put below the client dataportal configuration (droid) and below the appserver dataportal configuration |
Beta Was this translation helpful? Give feedback.
-
Hi Rocky, I think a find something. Following your advice, I have tried to see what happens into the HttpProxy class. According the plateform (Win or Droid), I have noticed the serialized data seems different I dont know if it's meaningful but if I'm forcing the dataportal to be isSync = True then the Droid works. Thx a lot for your help. |
Beta Was this translation helpful? Give feedback.
-
hy all, thanks a lot |
Beta Was this translation helpful? Give feedback.
-
I have finally had time to replicate this issue so I can work on a solution. Issue tracking this is #3791 |
Beta Was this translation helpful? Give feedback.
-
I have a workaround at least. If you configure the client and data portal endpoint (http portal controller) for I don't know yet if this is a CSLA bug or a limitation of Android (or MAUI?). The whole reason |
Beta Was this translation helpful? Give feedback.
-
We now have a better workaround that allows you to continue to use the binary data transfer (which is more efficient). Leave the data portal configuration as normal, and change the configuration of the builder.Services.AddScoped<HttpClient>((p) => new HttpClient(new SocketsHttpHandler())); https://github.com/MarimerLLC/csla/blob/main/docs/Upgrading%20to%20CSLA%208.md#maui-android |
Beta Was this translation helpful? Give feedback.
-
Hi Folks,
I am currently working on an MAUI project using CSLA6 and CSLA7Preview and I am facing an issue with the ntiers communication between android and the appserver.
Actually, the maui app windows works well with the ntiers communication but with android i got the following dataportal error :
Unable to read beyond the end of the stream.
Below, the github link to reproduce the issue base on the Rocky MauiExample projet
https://github.com/sylum/MauiExample_NTiers
Exception :
Does someone has already encounter this issue ?
Thanks a lot for you feedback in advance,
Best regards,
Cedric
Version and Platform
CSLA : 6.2.2 and 7.0.0-R23042601
MAUI : WIN & DROID
VS2022
WINDOW11
Beta Was this translation helpful? Give feedback.
All reactions