Base solution for your next web application
Open Closed

Core PhoneBook Xamarin Login Issue #4779


User avatar
0
cmthomps created

I'm playing with the PhoneBook Core Xamarin demo application ([https://github.com/aspnetzero/aspnet-zero-samples/tree/master/PhoneBook-Core]). The app starts and I can login as the host no problem. If I try to switch to the default tenant and login, I get an error. I haven't been able to track down the error in the code. I've tried setting a breakpoint in the LogException method, but it never gets hit.


3 Answer(s)
  • User Avatar
    0
    cmthomps created

    I got it to work. My issue was that the walkthrough instructions were a little confusing. [https://aspnetzero.com/Documents/Development-Guide-Xamarin])

    The walkthrough says that "You can use either Web.Mvc or Web.Host to feed the Xamarin app." My issue was that the Web.Mvc app is configured to run on 62114 (host is 22742). I thought I'd be smart and switch the DefaultHostUrl to use 62114 as well and I'd be set. That worked for the host but for the tenants it makes a call back to the server to get the url for the tenant and comes back with port 22742. Hence my error.

    Long story short. To avoid this, leave all the ports alone but run from the Host directory and not the Mvc directory.

  • User Avatar
    0
    alper created
    Support Team

    Hi,

    Thanks for informing us for the confusing statement on hosting. We just clarified the section. <a class="postlink" href="https://github.com/aspnetzero/documents/blob/master/doc/Development-Guide-Xamarin.md#host">https://github.com/aspnetzero/documents ... in.md#host</a>

    [attachment=0:34wmb3fn]XamarinHostMVC-ConfusingStatement-Removed.jpg[/attachment:34wmb3fn]

  • User Avatar
    0
    cmthomps created

    Thanks!