Problem Running ProjectTracker with Xamarin.Android UI #3327
-
Please excuse the seemingly basic question but I'm having issues trying to get the ProjectTracker sample to running using the Xamarin.Android UI. I've setup VS to run multiple startup projects (App Server and Xamarin.Android) and to use the Conveyor extension by Keyoti to allow the android emulator to communicate with my App Server running locally (as described here: [https://github.com/MarimerLLC/cslaforum/issues/873]). I have confirmed that the emulator is successfully hitting the endpoint on the App Server by setting a breakpoint in PostAsync in DataPortalController. I have also confirmed that the App Server is successfully getting results out of my database by running GetAsync in DataPortalController. The issue that I am having is that when PostAsync returns results to the emulator, I am getting an error: "The input is not a valid Base-64 string as it contains a non-base 64 character..." I also noticed that the relevant Fetch methods aren't being hit when PostAsync runs. In an attempt to figure the issue out, I tried replacing the contents of PostAsync, with a call to DataPortal.FetchAsync<Library.ProjectList>(). This successfully hit the relevant Fetch method, however the emulator doesn't seem to ever get the returned data or respond by updating the info in the view. Am I missing some configuration step or something else obvious? The readme seems to suggest that all I need to do to get the sample to run is to setup the App Server so that it is available to the emulator and to update the app.xaml.cs with the location of my App Server. Any help is greatly appreciated as I have been banging my head against the wall trying to figure this out. Please let me know if any other info is required. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unfortunately ProjectTracker has fallen out of date, and one of my big projects over the next couple months is to update it for modern CSLA. Right now you should look at the more platform targeted samples in the |
Beta Was this translation helpful? Give feedback.
For anyone else running into similar issues trying to configure a n-tier CSLA Xamarin project, I managed to make some progress using the SimpleNTier sample as a base instead of ProjectTracker. I was able to get results back to the app by ensuring this line of code was excluded from the Xamarin client's CSLA configuration in App.xaml.cs (it was included in the ProjectTracker sample):
For additional reference, we're looking at the CSLA 5.5.3 samples.