servicestackapps / hellomobile Goto Github PK
View Code? Open in Web Editor NEWMobile HTTP API examples of WPF, iOS, Android, UWP and OSX Clients
Mobile HTTP API examples of WPF, iOS, Android, UWP and OSX Clients
Hello,
i'm trying to use your Xamarin.Forms example running on an iOS Device.
When i try the EncryptedClient i get this error:
System.ExecutionEngineException: Attempting to JIT compile method '(wrapper delegate-invoke) <Module>:invoke_callvirt_void_HttpWebRequest_bool (System.Net.HttpWebRequest,bool)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
at ServiceStack.NetStandardPclExport.SetAllowAutoRedirect (System.Net.HttpWebRequest httpReq, System.Boolean value) [0x00009] in <c5e90b178d224c2192cf2f25af518220>:0
at ServiceStack.NetStandardPclExport.Config (System.Net.HttpWebRequest req, System.Nullable`1[T] allowAutoRedirect, System.Nullable`1[T] timeout, System.Nullable`1[T] readWriteTimeout, System.String userAgent, System.Nullable`1[T] preAuthenticate) [0x00012] in <c5e90b178d224c2192cf2f25af518220>:0
at ServiceStack.ServiceClientBase.PrepareWebRequest (System.String httpMethod, System.String requestUri, System.Object request, System.Action`1[T] sendRequestAction)
[0x000af] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceClientBase.SendRequest (System.String httpMethod, System.String requestUri, System.Object request) [0x00014] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceClientBase.Send[TResponse] (System.Object request) [0x00180] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceGatewayExtensions.Send[TResponse] (ServiceStack.IServiceGateway client, ServiceStack.IReturn`1[T] request) [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.EncryptedServiceClient.Send[TResponse] (System.String httpMethod, System.Object request) [0x00028] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.EncryptedServiceClient.Send[TResponse] (System.Object request) [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceGatewayAsyncWrappers+<>c__DisplayClass1_0`1[TResponse].<SendAsync>b__0 () [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at System.Threading.Tasks.Task`1[TResult].Inn
erInvoke () [0x0000f] in <0f7865fc4fbb4fddaab6f86c915ebae0>:0
at System.Threading.Tasks.Task.Execute () [0x00010] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2502
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /L
ibrary/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <0f7865fc4fbb4fddaab6f86c915ebae0>:0
at Client.XamarinForms.MainPage+<<-ctor>b__2_5>d.MoveNext () [0x0006a] in C:\Projekte\HelloMobile-master\src\Client.XamarinForms\Client.XamarinForms\MainPage.xaml.cs:128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/except
ionservices/exceptionservicescommon.cs:152
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
at UIKit.UIKitSynchronizationContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIKitSynchronizationContext.cs:24
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/Foundation/NSAction.cs:163
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at
Net.HttpWebRequest req, System.Nullable`1[T] allowAutoRedirect, System.Nullable`1[T] timeout, System.Nullable`1[T] readWriteTimeout, System.String userAgent, System.Nullable`1[T] preAuthenticate) [0x00012] in <c5e90b178d224c2192cf2f25af518220>:0
at ServiceStack.ServiceClientBase.PrepareWebRequest (System.String httpMethod, System.String requestUri, System.Object request, System.Action`1[T] sendRequestAction) [0x000af] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceClientBase.SendRequest (System.String httpMethod, System.String requestUri, System.Object request) [0x00014] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceClientBase.Send[TResponse] (System.Object request) [0x00180] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceGatewayExtensions.Send[TResponse] (ServiceStack.IServiceGateway client, ServiceStack.IReturn`1[T] request) [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.EncryptedServiceClient.Send[TResponse] (System.String h
UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at Client.XamarinForms.iOS.Application.Main (System.String[] args) [0x00000] in C:\Projekte\HelloMobile-master\src\Client.XamarinForms\Client.XamarinForms.iOS\Main.cs:17
2018-04-26 11:58:36.427 Client.XamarinForms.iOS[524:68528] Unhandled managed exception:
Attempting to JIT compile method '(wrapper delegate-invoke) <Module>:invoke_callvirt_void_HttpWebRequest_bool (System.Net.HttpWebRequest,bool)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
(System.ExecutionEngineException)
at ServiceStack.NetStandardPclExport.SetAllowAutoRedirect (System.Net.HttpWebRequest httpReq, System.Boolean value) [0x00009] in <c5e90b178d224c2192cf2f25af518220>:0
at ServiceStack.NetStandardPclExport.Config (System.
ttpMethod, System.Object request) [0x00028] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.EncryptedServiceClient.Send[TResponse] (System.Object request) [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at ServiceStack.ServiceGatewayAsyncWrappers+<>c__DisplayClass1_0`1[TResponse].<SendAsync>b__0 () [0x00000] in <089e8adc1f7e4350b416f9fa6cf8886e>:0
at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <0f7865fc4fbb4fddaab6f86c915ebae0>:0
at System.Threading.Tasks.Task.Execute () [0x00010] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2502
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
at
MoveNext () [0x0006a] in C:\Projekte\HelloMobile-master\src\Client.XamarinForms\Client.XamarinForms\MainPage.xaml.cs:128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
at UIKit.UIKitSynchronizationContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIKitSynchronizationContext.cs:24
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Fram
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <0f7865fc4fbb4fddaab6f86c915ebae0>:0
at Client.XamarinForms.MainPage+<<-ctor>b__2_5>d.
eworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/Foundation/NSAction.cs:163
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at Client.XamarinForms.iOS.Application.Main (System.String[] args) [0x00000] in C:\Projekte\HelloMobile-master\src\Client.XamarinForms\Client.XamarinForms.iOS\Main.cs:17
How can i solve this problem?
Rgeards,
Dirk
You may want to add some text to the readme explaining how to fix the missing System.IO.Compresssion problem on windows.
I would really like to see ServiceStack.Client and .Text support for PCL Profile111, with Windows Phone 8.1. While waiting, are there any workarounds for installing .Client and .Text in a Profile111 project?
I was wondering why ServiceStack.Common doesn't have a dependency to ServiceStack.Interfaces.Pcl directly instead of ServiceStack.Interfaces? I'm curious why there needs to be 2 ServiceStack.Interfaces NuGet packages essentially. I'm asking because having to create 2 projects and use link references between project files is kinda quirky...
I might not be aware of the limitations of PCLs so that's why I'm asking. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.