Mon projet et mes services Web fonctionnent correctement dans le simulateur, mais se bloquent lors du téléchargement vers un iPhone. Cela fonctionnait bien avant de mettre à jour Monotouch à partir de la version 1.1. Puis-je revenir aux versions antérieures de Monotouch? Voici le problème:Erreur de création de services Web dans Monotouch
J'ai une application monotouch en utilisant les services Web. Quand j'exporte le projet Xcode, je reçois une erreur de construction indiquant:
System.Web.Services.dll.mdb: Aucun fichier ou répertoire
Dans l'explorateur de dossier ce fichier est en rouge, car il n'y a rien Là.
Est-ce que quelqu'un a un System.Web.Services.dll qui fonctionne pour la dernière version de monodevelop et monotouch?
Voici la trace de la pile en cas d'erreur de sortie dans Xcode:
Wed Nov 18 10:31:37 unknown SpringBoard[24] : MultitouchHID(208ad0) uilock state: 1 -> 0 Wed Nov 18 10:31:37 unknown SpringBoard[24] : MultitouchHID(2944f0) device bootloaded Wed Nov 18 10:31:47 unknown kernel[0] : launchd[85] Builtin profile: container (seatbelt) Wed Nov 18 10:31:47 unknown kernel[0] : launchd[85] Container: /private/var/mobile/Applications/49398D0F-C9F2-456A-BB84-BA1F91C78243 (seatbelt) Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Xml.Serialization.XmlAttributeAttribute.AddKeyHash (System.Text.StringBuilder sb) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Xml.Serialization.XmlReflectionImporter..ctor() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.SoapTypeStubInfo..ctor (System.Web.Services.Protocols.LogicalTypeInfo logicalTypeInfo) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : --- End of inner exception stack trace --- Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.LogicalTypeInfo.CreateTypeStubInfo (System.Type type) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.LogicalTypeInfo.GetTypeStub (System.String protocolName) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t, System.String protocolName) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.GeoQuizRef.TGeoTeachers..ctor() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.QuizPicker.ViewDidLoad() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIViewController.get_View() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.AppDelegate.m__0 (System.Object , System.EventArgs) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIControlEventProxy.Activated() [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.Application.Main (System.String[] args) [0x00000] in :0 Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : Error connecting stdout and stderr (192.168.1.19:10001) Wed Nov 18 10:32:04 unknown com.apple.launchd[1] : (UIKitApplication:GeoQuiz2[0x46ff]) Exited with exit code: 1 Wed Nov 18 10:32:04 unknown SpringBoard[24] : Application 'GeoQuiz' exited abnormally with exit status 1
Utilisation de votre Web.Services.dll Je pense que je suis une trace de la pile plus courte en cas d'erreur.
Je ne souhaite pas réinstaller monotouch car j'ai déjà payé la licence pour cette installation. J'ai System.Web.Services.dll installé car il fonctionne très bien dans le simulateur. – Bryan
La réinstallation ne fera pas disparaître votre licence et si c'est le cas, vous pourrez la réactiver sans problème. – Gonzalo
Merci. Question mise à jour avec la trace de la pile. – Bryan