2009-12-22 4 views
0

L'application avec webservice (C#) l'accès fonctionne bien sur MAC (simulateur d'iPhone), mais ne fonctionne pas sur iphone (version et le mode de mise au point). Cela se produit lorsque j'ai essayé de créer une nouvelle instance de service Web.erreur d'accès Webservice de MonoTouch (débogage iphone)

 "YNSMS.ynSMSws.Service1 wsSMS = new YNSMS.ynSMSws.Service1();" 

Pourrait-il être un bug d'exécution de Monotouch iphone? Y a-t-il un moyen de le résoudre?

assemblage chargé: /private/var/mobile/Applications/47D2DA1C-28BA-43C8-BCF0-919D307C60EB/YNSMS.app/monotouch.dll assemblage chargé:/private/var/mobile/Applications/47D2DA1C-28BA- 43C8-BCF0-919D307C60EB/YNSMS.app/Mono.Security.dll Ensemble chargé: /private/var/mobile/Applications/47D2DA1C-28BA-43C8-BCF0-919D307C60EB/YNSMS.app/System.dll Ensemble chargé:/private/var/mobile/Applications/47D2DA1C-28BA-43C8-BCF0-919D307C60EB/YNSMS.app/System.Xml.dll Ensemble chargé:/private/var/mobile/Applications/47D2DA1C-28BA-43C8-BCF0-919D307C60EB/YNSMS.app/System.Web.Services.dll Ensemble chargé: /private/var/mobile/Applications/47D2DA1C-28BA-43C8-BCF0-919D307C60EB/YNSMS.app/AddressBookExample.exe Thread started: Résolu en attente de point d'arrêt sur 'MainView.xib.cs: 70' pour annuler AddressBookExample.MainView: ExecutaBotao(): 0. * Assertion à ../../../../mono/metadata/marshal.c:4115, la condition `méthode » pas remplie Stacktrace:

à (wrapper managé à natif) du système. MonoCustomAttrs.GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider, System.Type, bool) < 0xffffffff> à System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider, System.Type) < 0x0006c> à System.MonoCustomAttrs.GetCustomAttributes (système. Reflection.ICustomAttributeProvider, bool) < 0x00037> à System.Reflection.MonoField.GetCustomAttributes (bool) < 0x00023> à System.Xml.Serialization.XmlAttributes. .ctor (System.Reflection.ICustomAttributeProvider) < 0x0009f> à System.Xml.Serialization.XmlReflectionImporter.GetReflectionMembers (System.Type) < 0x004ef> à System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping (System.Xml.Serialization.TypeData , System.Xml.Serialization.XmlRootAttribute, chaîne) < 0x001df> à System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeData, System.Xml.Serialization.XmlRootAttribute, chaîne) < 0x000e3> au système .Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Type, System.Xml.Serialization.XmlRootAttribute, chaîne) < 0x0005b> à System.Xml.Serialization.XmlReflectionImporter.ImportListMapping (System.Xml.Serializati on.TypeData, System.Xml.Serialization.XmlRootAttribute, chaîne, System.Xml.Serialization.XmlAttributes, int) < 0x00743> à System.Xml.Serialization.XmlReflectionImporter.ImportListMapping (System.Type, System.Xml.Serialization.XmlRootAttribute , ficelle, System.Xml.Serialization.XmlAttributes, int) < 0x0005b> à System.Xml.Serialization.XmlReflectionImporter.CreateMapMember (System.Type, System.Xml.Serialization.XmlReflectionMember, chaîne) < 0x0093b> à System.XML .Serialization.XmlReflectionImporter.ImportMembersMapping (string, string, System.Xml.Serialization.XmlReflectionMember [], bool, bool, bool, System.Xml.Serialization.XmlMappingAccess) < 0x00097> à System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping (chaîne, chaîne, System.Xml.Serialization.XmlReflectionMember [], bool, bool, bool) < 0x0006b> à System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping (string, string, System.Xml.Serialization.XmlReflectionMember [], bool, bool) < 0x0005b> au système. Xml.Serialization.XmlReflectionImporter.ImportMembersMapping (chaîne, chaîne, System.Xml.Serialization.XmlReflectionMember [], booléen) < 0x0004b> à System.Web.Services.Protocols.SoapMethodStubInfo..ctor (System.Web.Services.Protocols. TypeStubInfo, System.Web.Services.Protocols.LogicalMethodInfo, objet, System.Xml.Serialization.XmlReflectionImporter, System.Xml.Serialization.SoapReflectionImporter) < 0x006bb> à System.Web.Services.Protocols.SoapTypeStubInfo.CreateMethodStubInfo (System.Web .Services.Protocols.TypeStubInfo, System.Web.Services.Protocols.LogicalMethod Info, bool) < 0x0016b> à System.Web.Services.Protocols.TypeStubInfo.BuildTypeMethods() < 0x00127> à System.Web.Services.Protocols.TypeStubInfo.Initialize() < 0x00023> à System.Web.Services .Protocols.LogicalTypeInfo.GetTypeStub (string) < 0x00167> à System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type, chaîne) < 0x0002f> à System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () < 0x0003b> à YNSMS.ynSMSws.Service1..ctor() à AddressBookExample.MainView.ExecutaBotao (objet, System.EventArgs) [0x00000] dans/volumes/STOCKAGE/cafexpto/Marcelo/sistemas_mac/MonoTouch/AddresBook/AddressBookExample/MainVie w.xib.cs: 70 à MonoTouch.UIKit.UIBarButtonItem/Callback.Call (MonoTouch.Foundation.NSObject) < 0x0005b> à (exécution d'invocation-enveloppe) object.runtime_invoke_dynamic (de IntPtr, IntPtr, IntPtr, IntPtr) < 0x000c3 > at (wrapper géré vers natif) MonoTouch.UIKit.UIApplication.UIApplicationMain (int, chaîne [], intptr, intptr) < 0xffffffff> à MonoTouch.UIKit.UIApplication.Main (chaîne [], chaîne, chaîne) < 0x000e0> à MonoTouch.UIKit.UIApplication.Main (string []) < 0x00023> à AddressBookExample.Application.Main (string []) [0x00000] dans/volumes/STOCKAGE/cafexpto/Marcelo/sistemas_mac/MonoTouch/AddresBook /AddressBookExample/Main.cs:14 at (wrapper runtime-invoke) object.r untime_invoke_dynamic (IntPtr, IntPtr, IntPtr, IntPtr) < 0x000c3>

stacktrace natif:

0 AddressBookExample     0x0003ca58 mono_handle_native_sigsegv + 396 
1 AddressBookExample     0x0006c13c sigabrt_signal_handler + 124 
2 libSystem.B.dylib     0x31a2584b _sigtramp + 42 
3 libSystem.B.dylib     0x31a279a3 kill + 10 
4 libSystem.B.dylib     0x31a27995 raise + 16 
5 libSystem.B.dylib     0x31a3c641 abort + 40 
6 AddressBookExample     0x001b0a0c g_logv + 248 
7 AddressBookExample     0x001b0a64 g_log + 52 
8 AddressBookExample     0x000e5a5c mono_marshal_get_runtime_invoke + 108 
9 AddressBookExample     0x0000b41c mono_jit_runtime_invoke + 624 
10 AddressBookExample     0x0011f054 mono_property_set_value + 68 
11 AddressBookExample     0x001453e4 create_custom_attr + 1212 
12 AddressBookExample     0x0014610c mono_custom_attrs_construct + 408 
13 AddressBookExample     0x001479a0 mono_reflection_get_custom_attrs_by_type + 92 
14 AddressBookExample     0x000c82bc custom_attrs_get_by_type + 80 
15 AddressBookExample     0x004e8fd4 wrapper_managed_to_native_System_MonoCustomAttrs_GetCustomAttributesInternal_System_Reflection_ICustomAttributeProvider_System_Type_bool + 80 

* Assertion: ne devrait pas être atteint à ../../../../mono/mini /mini-darwin.c:258

+0

Vous devriez probablement envoyer ceci au maillist de monotouch, où leurs développeurs pourront jeter un coup d'oeil: http://lists.ximian.com/mailman/listinfo/monotouch –

+1

Ceci est un problème pour essayer d'écrire des applications iPhone avec des choses comme MonoTouch ... Il y a tellement de couches supplémentaires au dessus de ce que vous écrivez réellement que le problème pourrait être n'importe où. Il pourrait être dans votre code, il pourrait être dans l'API MonoTouch, cela pourrait avoir quelque chose à faire avec la chaîne d'outils, le processus de compilation du code que vous écrivez dans le code natif de l'iPhone ... Et le résultat est un problème caché Sous tout ça ... Bonne chance ... – Jasarien

Répondre

0

Ma conjecture est que cela aura été quelque chose à voir avec l'éditeur de liens MonoTouch supprimer certains de vos champs XML - essayez d'ajouter la réserve (AllMembers = true) attribut sur le Web généré code de service.