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

Activities of "Ricavir"

Question

Hi,

I've upgraded my existing project from v5.1 to v5.5.

Webpack build is very long the first time ; it takes more than 5 minutes to finish building when arriving at : "92% after chunk asset optimization SourceMapDevToolPlugin main.js generate SourceMap"

Before upgrading my project, building was very fast (less then 50s for sure)

I tried to reinstall node but same problem.

DO you have any idea to solve this ?

@Alper : thank you for your explanation. I tried removing all OnPlatform tags but still same issue. I lost 3 days digging on this issue. I've tried a lot of things : coming back to previous commits, deleting all solution folders, cloning the solution on different folder, on different computers, cleaning everything BIN & OBJ... and still same issue.

Right now, I'm trying to look at nuget packages and versions...

But, honestly Xamarin is really confusing. I'm wondering if I can use it for a large project ! I can't imagine loosing days of work searching on stackoverflow and xamarin forums.

I know you advice everybody about silly things thrown by Xamarin, but when you experiment it, it hurts ! :cry:

@ismcagdas : hi tried with a new fresh database using migrations. I still have same issue.

If server side is not running, then I have a popup saying that No Internet connection to server is existing. Normal behavior. But when starting server side, App is stopped with following System.InvalidCastException


07-01 08:42:42.962 D/Mono ( 6880): Found as 'java_interop_jnienv_throw'. An unhandled exception occured.

[0:] * Unhandled Exception *: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) at Xamarin.Forms.OnPlatform1[T].op_Implicit (Xamarin.Forms.OnPlatform1[T] onPlatform) [0x00036] in D:\agent_work\2\s\Xamarin.Forms.Core\OnPlatform.cs:71 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 --- End of inner exception stack trace --- at (wrapper dynamic-method) System.Object.79f518ee-155a-49e7-9fa1-0901474d0e7a(intptr,intptr,intptr) 07-01 08:42:45.390 E/mono-rt ( 6880): [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. 07-01 08:42:45.390 E/mono-rt ( 6880): at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) 07-01 08:42:45.390 E/mono-rt ( 6880): at Xamarin.Forms.OnPlatform1[T].op_Implicit (Xamarin.Forms.OnPlatform1[T] onPlatform) [0x00036] in D:\agent_work\2\s\Xamarin.Forms.Core\OnPlatform.cs:71 07-01 08:42:45.390 E/mono-rt ( 6880): at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) 07-01 08:42:45.390 E/mono-rt ( 6880): at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 07-01 08:42:45.390 E/mono-rt ( 6880): --- End of inner exception stack trace --- 07-01 08:42:45.390 E/mono-rt ( 6880): at (wrapper dynamic-method) System.Object.79f518ee-155a-49e7-9fa1-0901474d0e7a(intptr,intptr,intptr) 07-01 08:42:45.391 D/ ( 6880): HostConnection::get() New Host Connection established 0x8c6a2b00, tid 6880

Thank you Alper .

I've been trying to fix this issue from a while now. I have removed all bin and obj folders, cleaned up the solution and tested several times. I have upgraded my VS tooling I also tried from an other computer and I have same issue.

The problem cames from my current project only ! because I tried from a fresh aspnetzero template and everything works.

I'm getting some issues with my Xamarin app. I will test again and give you a feedback when I will have more information to provide.

Hi,

I'm currently developing a basic Xamarin application (based on v5.1 template). Everything was working well.

I don't know why but know, my app fails when slash screen is displayed : the problem occurs at App.xaml.cs on InitializeComponent() method. Exception is "Specified cast is not valid". Do you know why a cast would be not valid ?

The stack trace is :

System.InvalidCastException: Specified cast is not valid. at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) at Xamarin.Forms.OnPlatform1[T].op_Implicit (Xamarin.Forms.OnPlatform1[T] onPlatform) [0x00036] in D:\agent_work\2\s\Xamarin.Forms.Core\OnPlatform.cs:71 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <f32579baafc1404fa37ba3ec1abdc0bd>:0

I came back to previous GIT commits, but still same issue...

Hello,

I'm using Xamarin App v5.1 with aspcore server (also in v5.1)

When I start Xamarin app and connect a user, app language is always set to English ; even if user has set its default language to French before. Also, when I connect to the angular application, I notice that default user language has also changed to english.

Users are then obliged to set their language after each app startup (Xamarin AND Angular)!

Do you know this issue ? I don't see any existing issue on GitHub about it.

I've got it to work ! By searching deeper in the forum I found this post : #4285@2d3b4b70-f5ba-479a-a513-f646cb0e780d

Accept-Encoding as gzip,deflate should be removed from AbpApiClient.

This could be added to the XAMARIN documentation.

Cheers

Hi,

I'm currently testing android app without any change (just assets). Everything is working well on my dev machine. But when I try to target my production server (on Azure), I can't connect.

I'm getting a token after authentication, but app throws an exception when calling ProxySessionAppService ( api/services/app/Session/GetCurrentLoginInformations)

Do you know why ? Do I need to publish my Android App first to make it work with my production server ?

Answer

Yes, it worked for me and I'm using merged project

Showing 211 to 220 of 325 entries