Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "richardghubert"

Thanks! But how can I authenticate the app when it never starts? I never get a chance to authenticate, since the app never gets past the init screen before it crashes. Have deleted all bin/obj and created new android emulators, so a "stale cache" cannot be the problem.

Thanks for any tips!

Strange, the mobile app (emulated) is crashing here (see screen shot). I am using the newest aspnetzero with no modifications in these libs. Any idea why it is not getting its config?

Hi alper. Many thanks. This helps. I am indeed NOT getting that response. I'll investigate and get back to you here...

From your log above:

INFO 2018-09-26 12:44:07,334 [9 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. I'm thinking that this may be where the problem is in my case. How does the mobile client get a valid token without logging in first? Hmmm.

Thanks alper. Yes, see my first post. This is precisely what I did. That is not the problem. Also above, you can see in the log/stack that the connection is working fine.

The problem, I think, is that it is not finding the following route -- and I don't see it in the code either:

http://192.168.2.107:22742/AbpUserConfiguration/GetAll

So my questions above are still the same. Can you help me out with them? THANKS!

Thanks alper for the great infos! I am one step ahead of you though. I did everything you suggested already before I wrote :-) You can also see in the logs and in the stack above that the mobile client is indeed making the connection with the host. It is apparently not a connection problem. That is why I answered that

http://192.168.2.107:22742/AbpUserConfiguration/GetAll

cannot be found. I cannot call this from anywhere.
Question: Where can I set a debug point to see this entrypoing in the Web.Host?

Also, as you noted, when I test the Web.Host using VStudio, the default route does not work:

http://localhost:22742/

gives me the message "unable to handle this request".

http://localhost:22742/swagger works fine.

I can surely find and fix this myself, but I am using the UNCHANGED base code from ASP.NETZero: I have not made any changes. So why isn't the default route working? Ideas?

Question: I assume that the default route http://localhost:22742/ should simply to the HomeController in Web.Host.

Thanks again!

OK, progress after the delete/rebuild:

I can deploy with the VS-debugger to a real Android 7 SDK24 phone. The App now gives me a reasonable error message:

I is attempting to call:

GET http://192.168.2.107:22742/AbpUserConfiguration/GetAll => Call Failed.

Well, as far as I can see (test, code search) , this API does not exist in the star.Web.Host

Does it?

Then upon "continue from dialog" it crashes here:

09-26 20:28:32.980 E/mono-rt (27469): [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Set configuration before using remote localization! NOTE: This is at line 42 in Mobile.Shared ...Localization.L.cs

NOTE Below in stack trace that the connection with the server is established: 09-26 20:27:50.567 D/ (27469): [Posix_connect Debug]Process com.ptw.de.PTW100.Mobile :22742

Perhaps you need to test/check again since there have been recent breaking changes in androids 8 SDKs.

Stack trace from Debugger deploy to real android 7 phone:

Thread started: #58 09-26 20:23:53.216 D/WindowClient(27469): Add to mViews: DecorView@6c4a89b[], this = android.view.WindowManagerGlobal@4f60494 09-26 20:23:53.222 D/OpenGLRenderer(27469): CanvasContext() 0x88a47000 09-26 20:23:53.223 D/ViewRootImplSplashActivity: hardware acceleration is enabled, this = ViewRoot{a711662 com.ptw.de.PTW100.Mobile/md549fab4cb238a8c0da1e7c7324330196b.SplashActivity,ident = 2} 09-26 20:23:53.271 D/Surface (27469): Surface::allocateBuffers(this=0x88d09100) 09-26 20:23:53.271 D/OpenGLRenderer(27469): CanvasContext() 0x88a47000 initialize window=0x88d09100, title=com.ptw.de.PTW100.Mobile/md549fab4cb238a8c0da1e7c7324330196b.SplashActivity 09-26 20:23:53.271 D/Surface (27469): Surface::connect(this=0x88d09100,api=1) 09-26 20:23:53.276 W/libEGL (27469): [ANDROID_RECORDABLE] format: 1 09-26 20:23:53.284 D/Surface (27469): Surface::setBufferCount(this=0x88d09100,bufferCount=4) 09-26 20:23:53.327 D/GraphicBuffer(27469): register, handle(0xa0b86ea0) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:23:53.355 D/GraphicBuffer(27469): register, handle(0xa0b87370) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:23:54.879 D/GraphicBuffer(27469): register, handle(0xa0b873e0) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:23:54.902 D/GraphicBuffer(27469): register, handle(0xa0b87450) (w:811 h:643 s:816 f:0x1 u:0x000f02) Thread finished: <Thread Pool> #55 Thread started: <Thread Pool> #59 Thread started: <Thread Pool> #60 The thread 0x37 has exited with code 0 (0x0). Thread finished: <Thread Pool> #60 The thread 0x3c has exited with code 0 (0x0). Thread finished: <Thread Pool> #57 Thread started: <Thread Pool> #61 The thread 0x39 has exited with code 0 (0x0). Thread finished: #58 The thread 0x3a has exited with code 0 (0x0). Thread finished: <Thread Pool> #59 Thread started: <Thread Pool> #62 Thread started: <Thread Pool> #63 The thread 0x3b has exited with code 0 (0x0). Thread finished: <Thread Pool> #61 The thread 0x3d has exited with code 0 (0x0). Thread started: <Thread Pool> #64 Thread finished: <Thread Pool> #63 The thread 0x3f has exited with code 0 (0x0). Thread finished: <Thread Pool> #62 Thread started: <Thread Pool> #65 Thread started: <Thread Pool> #66 The thread 0x3e has exited with code 0 (0x0). Thread finished: <Thread Pool> #65 The thread 0x41 has exited with code 0 (0x0). Thread finished: <Thread Pool> #64 Thread started: <Thread Pool> #67 The thread 0x40 has exited with code 0 (0x0). Thread finished: <Thread Pool> #66 Thread started: <Thread Pool> #68 Thread started: <Thread Pool> #69 The thread 0x42 has exited with code 0 (0x0). Thread finished: <Thread Pool> #68 The thread 0x44 has exited with code 0 (0x0). 09-26 20:27:50.567 I/System.out(27469): [socket][2] connection /192.168.2.107:22742;LocalPort=-1(0) 09-26 20:27:50.567 D/ (27469): [Posix_connect Debug]Process com.ptw.de.PTW100.Mobile :22742 09-26 20:27:50.568 D/Surface (27469): Surface::disconnect(this=0x88d09100,api=1) 09-26 20:27:50.569 D/GraphicBuffer(27469): unregister, handle(0xa0b87450) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:27:50.570 D/GraphicBuffer(27469): unregister, handle(0xa0b873e0) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:27:50.571 D/GraphicBuffer(27469): unregister, handle(0xa0b87370) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:27:50.572 D/GraphicBuffer(27469): unregister, handle(0xa0b86ea0) (w:811 h:643 s:816 f:0x1 u:0x000f02) 09-26 20:27:50.581 I/System.out(27469): [socket][/192.168.2.104:46771] connected 09-26 20:27:50.608 D/WindowClient(27469): Remove from mViews: DecorView@6c4a89b[], this = android.view.WindowManagerGlobal@4f60494 09-26 20:27:50.609 V/InputMethodManager(27469): onWindowFocus: null softInputMode=32 first=false flags=#81810500 Thread finished: <Thread Pool> #67 Thread started: <Thread Pool> #70 The thread 0x43 has exited with code 0 (0x0). Thread started: #71 09-26 20:28:03.641 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.641 D/Mono (27469): Searching for 'java_interop_jnienv_call_int_method'. 09-26 20:28:03.641 D/Mono (27469): Probing 'java_interop_jnienv_call_int_method'. 09-26 20:28:03.641 D/Mono (27469): Found as 'java_interop_jnienv_call_int_method'. 09-26 20:28:03.715 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.715 D/Mono (27469): Searching for 'java_interop_jnienv_call_boolean_method'. 09-26 20:28:03.715 D/Mono (27469): Probing 'java_interop_jnienv_call_boolean_method'. 09-26 20:28:03.715 D/Mono (27469): Found as 'java_interop_jnienv_call_boolean_method'. 09-26 20:28:03.846 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.846 D/Mono (27469): Searching for 'java_interop_jnienv_new_byte_array'. 09-26 20:28:03.846 D/Mono (27469): Probing 'java_interop_jnienv_new_byte_array'. 09-26 20:28:03.846 D/Mono (27469): Found as 'java_interop_jnienv_new_byte_array'. Thread started: <Thread Pool> #72 09-26 20:28:03.873 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.873 D/Mono (27469): Searching for 'java_interop_jnienv_set_byte_array_region'. 09-26 20:28:03.873 D/Mono (27469): Probing 'java_interop_jnienv_set_byte_array_region'. 09-26 20:28:03.873 D/Mono (27469): Found as 'java_interop_jnienv_set_byte_array_region'. 09-26 20:28:03.878 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.878 D/Mono (27469): Searching for 'java_interop_jnienv_call_int_method_a'. 09-26 20:28:03.878 D/Mono (27469): Probing 'java_interop_jnienv_call_int_method_a'. 09-26 20:28:03.878 D/Mono (27469): Found as 'java_interop_jnienv_call_int_method_a'. Thread started: <Thread Pool> #73 09-26 20:28:03.912 D/Mono (27469): DllImport searching in: '__Internal' ('(null)'). 09-26 20:28:03.912 D/Mono (27469): Searching for 'java_interop_jnienv_get_byte_array_region'. 09-26 20:28:03.912 D/Mono (27469): Probing 'java_interop_jnienv_get_byte_array_region'. 09-26 20:28:03.912 D/Mono (27469): Found as 'java_interop_jnienv_get_byte_array_region'. 09-26 20:28:04.207 D/Mono (27469): Image addref System.Numerics[0x878ccc80] -> System.Numerics.dll[0x87840800]: 2 09-26 20:28:04.207 D/Mono (27469): Prepared to set up assembly 'System.Numerics' (System.Numerics.dll) 09-26 20:28:04.207 D/Mono (27469): Assembly System.Numerics[0x878ccc80] added to domain RootDomain, ref_count=1 09-26 20:28:04.211 D/Mono (27469): AOT: image 'System.Numerics.dll.so' not found: dlopen failed: library "/data/app/com.ptw.de.PTW100.Mobile-1/lib/arm/libaot-System.Numerics.dll.so" not found 09-26 20:28:04.213 D/Mono (27469): AOT: image '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/lib/mono/aot-cache/arm/System.Numerics.dll.so' not found: dlopen failed: library "/data/app/com.ptw.de.PTW100.Mobile-1/lib/arm/libaot-System.Numerics.dll.so" not found 09-26 20:28:04.214 D/Mono (27469): Config attempting to parse: 'System.Numerics.dll.config'. 09-26 20:28:04.214 D/Mono (27469): Config attempting to parse: '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/etc/mono/assemblies/System.Numerics/System.Numerics.config'. Loaded assembly: System.Numerics.dll [External]09-26 20:28:04.214 D/Mono (27469): Assembly Ref addref netstandard[0x8a278680] -> System.Numerics[0x878ccc80]: 2

09-26 20:28:04.215 D/Mono (27469): Assembly Ref addref System.Numerics[0x878ccc80] -> mscorlib[0x9c195080]: 58 09-26 20:28:04.501 D/Mono (27469): Assembly Ref addref netstandard[0x8a278680] -> System.Runtime.Serialization[0x89bb9460]: 3 09-26 20:28:04.542 D/Mono (27469): Image addref System.Data[0x878ccf80] -> System.Data.dll[0x878b3c00]: 2 09-26 20:28:04.545 D/Mono (27469): Prepared to set up assembly 'System.Data' (System.Data.dll) 09-26 20:28:04.545 D/Mono (27469): Assembly System.Data[0x878ccf80] added to domain RootDomain, ref_count=1 09-26 20:28:04.548 D/Mono (27469): AOT: image 'System.Data.dll.so' not found: dlopen failed: library "/data/app/com.ptw.de.PTW100.Mobile-1/lib/arm/libaot-System.Data.dll.so" not found 09-26 20:28:04.550 D/Mono (27469): AOT: image '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/lib/mono/aot-cache/arm/System.Data.dll.so' not found: dlopen failed: library "/data/app/com.ptw.de.PTW100.Mobile-1/lib/arm/libaot-System.Data.dll.so" not found 09-26 20:28:04.550 D/Mono (27469): Config attempting to parse: 'System.Data.dll.config'. 09-26 20:28:04.550 D/Mono (27469): Config attempting to parse: '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/etc/mono/assemblies/System.Data/System.Data.config'. 09-26 20:28:04.550 D/Mono (27469): Assembly Ref addref netstandard[0x8a278680] -> System.Data[0x878ccf80]: 2 09-26 20:28:04.553 D/Mono (27469): Assembly Ref addref System.Data[0x878ccf80] -> mscorlib[0x9c195080]: 59 09-26 20:28:04.553 D/Mono (27469): Assembly Ref addref System.Data[0x878ccf80] -> System.Xml[0x8a278ce0]: 3 Loaded assembly: System.Data.dll [External] 09-26 20:28:04.569 D/Mono (27469): Assembly Ref addref System.Data[0x878ccf80] -> System[0x8a278bc0]: 13 09-26 20:28:04.573 D/Mono (27469): Assembly Ref addref System.Data[0x878ccf80] -> System.Core[0x8a2779c0]: 9 Unhandled Exception:

System.Exception: <Timeout exceeded getting exception details>

09-26 20:28:29.598 D/Mono (27469): DllImport attempting to load: '/system/lib/liblog.so'. 09-26 20:28:29.602 D/Mono (27469): DllImport loaded library '/system/lib/liblog.so'. 09-26 20:28:29.602 D/Mono (27469): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so'). 09-26 20:28:29.602 D/Mono (27469): Searching for '__android_log_print'. 09-26 20:28:29.602 D/Mono (27469): Probing '__android_log_print'. 09-26 20:28:29.602 D/Mono (27469): Found as '__android_log_print'. 09-26 20:28:29.622 I/MonoDroid(27469): UNHANDLED EXCEPTION: 09-26 20:28:29.697 I/MonoDroid(27469): System.Exception: Set configuration before using remote localization! 09-26 20:28:29.697 I/MonoDroid(27469): at ptw.de.PTW100.Localization.L.LocalizeInternal (System.String text) [0x0003b] in C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\Localization\L.cs:45 09-26 20:28:29.697 I/MonoDroid(27469): at ptw.de.PTW100.Localization.L.Localize (System.String text) [0x00001] in C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\Localization\L.cs:13 09-26 20:28:29.697 I/MonoDroid(27469): at ptw.de.PTW100.Core.Threading.AbpExceptionHandler+<HandleIfAbpResponseAsync>d__0.MoveNext () [0x00102] in C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\Core\Threading\AbpExceptionHandler.cs:34 09-26 20:28:29.697 I/MonoDroid(27469): --- End of stack trace from previous location where exception was thrown ---

OK, what the heck, I guess it is worth a try. I started the LogCat on my Android and I noticed that the AspNetZero App was crashing after attempting some ClientUser interaction of some sort. The stack-trace information was not very precise, but showed that the application was crashing.

if not works, create a new emulator with the latest SDK What do you mean by this. Create emulator? I use the emulators that are available from Xamarin, I don't create them as far as I can see.

I'll let you know, of course, if I find a solution. I am also suspecting the Visual Studio-2017-next Preview edition. It should not be the probelm, but... Thanks again.

Thanks Alper, There does not seem to be a way to reply to your suggestion, and the "Answer" button below is disabled, only the "answer and close" is enabled. This is NOT closed. See:

OK, I changed toe LocalhostIp to be the machine running my star.Web.Host instance.

However, starting the emulator first causes studio to exit with an "error" that the emulator is already running, see below. I tried this both with F5 debug mode and a simple "deploy to device", same result with both.

3>Done building project "ptw.de.PTW100.Application.Client.csproj".
4>------ Build started: Project: ptw.de.PTW100.Mobile.Shared, Configuration: Debug Any CPU ------
4>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\ptw.de.PTW100.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl 1.1.6' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\ptw.de.PTW100.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl.Async 1.0.165' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\ptw.de.PTW100.Mobile.Shared.csproj : warning NU1701: Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\ptw.de.PTW100.Mobile.Shared.csproj : warning NU1701: Package 'PCLStorage 1.0.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\ptw.de.PTW100.Mobile.Shared.csproj : warning NU1701: Package 'Xam.FormsPlugin.Iconize 1.0.10' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ImageCircle.Forms.Plugin.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
4>Controls\HideableToolbarItem.cs(10,60,10,172): warning CS0618: 'BindableProperty.Create<TDeclarer, TPropertyType>(Expression<Func<TDeclarer, TPropertyType>>, TPropertyType, BindingMode, BindableProperty.ValidateValueDelegate<TPropertyType>, BindableProperty.BindingPropertyChangedDelegate<TPropertyType>, BindableProperty.BindingPropertyChangingDelegate<TPropertyType>, BindableProperty.CoerceValueDelegate<TPropertyType>, BindableProperty.CreateDefaultValueDelegate<TDeclarer, TPropertyType>)' is obsolete: 'Create<> (generic) is obsolete as of version 2.1.0 and is no longer supported.'
4>Controls\CardView.cs(14,17,14,29): warning CS0618: 'Frame.OutlineColor' is obsolete: 'OutlineColor is obsolete as of version 3.0.0. Please use BorderColor instead.'
4>ptw.de.PTW100.Mobile.Shared -> C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Shared\bin\Debug\netstandard2.0\ptw.de.PTW100.Mobile.Shared.dll
4>Done building project "ptw.de.PTW100.Mobile.Shared.csproj".
5>------ Build started: Project: ptw.de.PTW100.Mobile.Droid, Configuration: Debug Any CPU ------
5>C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
5>C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Droid\Renderer\CropViewRenderer.cs(12,5,128,6): warning CS0618: 'PageRenderer.PageRenderer()' is obsolete: 'This constructor is obsolete as of version 2.5. Please use PageRenderer(Context) instead.'
5>  ptw.de.PTW100.Mobile.Droid -> C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Mobile.Droid\bin\Debug\ptw.de.PTW100.Xamarin.Android.dll
5>  No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
6>Starting deployment to 10.1" Marshmallow (6.0.0) XHDPI Tablet ...
6>Starting emulator 10.1" Marshmallow (6.0.0) XHDPI Tablet ...
6>Validating emulator arguments...
6>Determining if emulator is already running...
6>Emulator is already running.
========== Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
`

and F5:

`Starting runtime checks
Starting emulator 10.1" Marshmallow (6.0.0) XHDPI Tablet ...1>Waiting for runtime checks to complete
Build completed in 00:01:11.797

Validating emulator arguments...
Determining if emulator is already running...
Emulator is already running.
Runtime checks completed
Build has been canceled.`
In the VS status bar is then "Deploy Canceled".

Hi. Could you tell us precisely which product from Telerik you are using: is this the (best) one: <a class="postlink" href="https://www.telerik.com/aspnet-core-ui">https://www.telerik.com/aspnet-core-ui</a> Thanks!

Showing 21 to 29 of 29 entries