hello
i downloaded a new project of type ASP.NET MVC 5.x & jQuery i can sucessfully run MVC from browser but when i set up droid as startup project it loads the splash screen and waits indefinetly and then gives this error. error snapshot attached below
i tried to do this because of the earlier forum post was not resolved : Xamarin Mobile App - Language Error
5 Answer(s)
-
0
Hi,
It seems like your Xamarin app is not able to communicate with server app. If you are using ASP.NET Core & jQuery version, you need to use 62114 port instead of 22742 in the Xamarin app, see <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Xamarin#host">https://aspnetzero.com/Documents/Develo ... marin#host</a>
It is not possible to use Xamarin with ASP.NET MVC 5.x versions.
-
0
when i changed the port to 62114 it rhows the following error
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__21`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Hosting.Internal.WebHost.
program.cs as below
using System.IO; using Microsoft.AspNetCore.Hosting;
namespace ClassMate_Demo.Web.Startup { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel(opt => opt.AddServerHeader = false) .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup
host.Run(); } }
}
-
0
Hi @avanekar02,
If this is the same project you are facing language problem, we can take a look at this problem as well since we have your solution right now.
-
0
Sequence of activity
login using admin user and password go to any screen logout from login page now change language to arabic change language to english login again as admin it takes you to mainview which is now in arabic even though you selected english in the loginpage as default language
thanks
-
0
@avanekar02 Thanks, we will check this. We received your email about this problem as well.