The web service class used in the android project is located in a PCL. When no linking is specified everything runs fine.
as soon as i "link sdk assemblies only" it fails on the BeginInvoke command below (with no linking it runs 100%)
public System.IAsyncResult BeginValidateUser(string uName, string Password, string MacAddress, System.AsyncCallback callback, object asyncState) { object[] _args = new object[3]; _args[0] = uName; _args[1] = Password; _args[2] = MacAddress; System.IAsyncResult _result = base.BeginInvoke("ValidateUser", _args, callback, asyncState); return _result; }
with stacktrace as below
0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal C# 0x1 in System.Diagnostics.Debugger.Mono_UnhandledException C# 0x26 in object.1c0a38ff-ef7c-4b47-b0d4-f32fb3f1f714 C# 0x14B in System.ServiceModel.MonoInternal.ClientRuntimeChannel..ctor C# 0x2F in System.ServiceModel.MonoInternal.ClientRuntimeChannel..ctor C# 0x24 in System.ServiceModel.ClientBase.ChannelBase.get_Inner C# 0x3D in System.ServiceModel.ClientBase.ChannelBase.BeginInvoke C#
0x1F in ServiceClient.ServiceClientChannel.BeginValidateUser at c:\xcallibre\Xmobi102\Xmobi.Core\MobiService.cs:1959 C# 0xE in ServiceClient.IService.BeginValidateUser at c:\xcallibre\Xmobi102\Xmobi.Core\MobiService.cs:1186 C# 0x22 in ServiceClient.OnBeginValidateUser at c:\xcallibre\Xmobi102\Xmobi.Core\MobiService.cs:1200 C# 0x62 in System.ServiceModel.ClientBase.InvokeAsync C# 0x96 in ServiceClient.ValidateUserAsync at c:\xcallibre\Xmobi102\Xmobi.Core\MobiService.cs:1238 C# 0x6 in ServiceClient.ValidateUserAsync at c:\xcallibre\Xmobi102\Xmobi.Core\MobiService.cs:1221 C# 0x104 in Xmobi.Core.ViewModels.ResyncBaseViewModel.RunLogin at c:\xcallibre\Xmobi102\Xmobi.Core\ViewModels\ResyncBaseViewModel.cs:523 C# 0x38 in Xmobi.Droid.Views.LoginView.DoLogin at c:\xcallibre\Xmobi102\Xmobi.Droid\Views\LoginView.cs:61 C# 0x2 in Xmobi.Droid.Views.LoginView.b__0 at c:\xcallibre\Xmobi102\Xmobi.Droid\Views\LoginView.cs:73 C# 0x14 in Android.Views.View.IOnClickListenerImplementor.OnClick C# 0x13 in Android.Views.View.IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ C# 0x17 in object.1c0a38ff-ef7c-4b47-b0d4-f32fb3f1f714 C#