Monotouch中的Web服务构建错误 [英] Web Services Build Error in Monotouch

查看:68
本文介绍了Monotouch中的Web服务构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目和Web服务在模拟器中可以正常工作,但是在上载到iPhone时崩溃.在我从1.1更新Monotouch之前,它一直运行良好.我可以还原到早期版本的Monotouch吗?问题出在这里:

My project and web services work fine in the simulator but crash when uploading to an iPhone. It had been working fine before I updated Monotouch from 1.1. Can I revert back to earlier versions of Monotouch? Here is the problem:

我有一个使用Web服务的monotouch应用程序.将项目导出到Xcode时,出现构建错误,指出:
System.Web.Services.dll.mdb:没有这样的文件或目录

I have a monotouch app using web services. When I export the project to Xcode, I get a build error stating:
System.Web.Services.dll.mdb: No such file or directory

在文件夹资源管理器中,该文件以红色突出显示,因为那里没有任何内容.

In the folder explorer that file is highlighted in red because there is nothing there.

任何人都可以使用适用于最新版本的monodevelop和monotouch的System.Web.Services.dll吗?

Does anyone have a working System.Web.Services.dll for the latest version of monodevelop and monotouch?

这是xCode中退出错误时的堆栈跟踪:

Here is the stack trace on exit error in 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

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

使用您的Web.Services.dll,我认为我在出错时得到的堆栈跟踪更短.

Using your Web.Services.dll I think I got a shorter stack trace on error.

推荐答案

System.Web.Services.dll.mdb 应该已安装.您是否尝试过重新安装monotouch?

System.Web.Services.dll.mdb should be installed. Have you tried reinstalling monotouch?

我已经上传了 System.Web.Services.dll System.Web.Services.dll.mdb 供您尝试:

I've uploaded System.Web.Services.dll and System.Web.Services.dll.mdb for you to try: here. Use at your own risk! And you should report the problem and provide any relevant info so that this problem can be fixed for real.

这篇关于Monotouch中的Web服务构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆