尝试访问 WCF 服务时的最新 MonoTouch 4.0 问题 [英] Latest MonoTouch 4.0 problem when trying to access a WCF service

查看:21
本文介绍了尝试访问 WCF 服务时的最新 MonoTouch 4.0 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 MonoTouch 应用程序使用 CustomBindingHttpTransportBindingTextMessageEncodingBinding 调用 SOAP WCF 服务,并且在 MonoTouch 3.2 版中一切正常.6.我正在更新我的系统以使用 MonoTouch 4.0.0 版,并且对我的 SOAP WCF 服务的调用不再有效.我不断收到 System.Net.WebException

My MonoTouch application is calling to a SOAP WCF Service using CustomBinding with HttpTransportBinding and TextMessageEncodingBinding and everything is working fine with MonoTouch version 3.2.6. I'm updating my system to use MonoTouch version 4.0.0 and the call to my SOAP WCF Service is no longer working. I keep getting the System.Net.WebException

"The remote server returned an error: 400 Bad Request"; 

是什么导致了这个问题,我该如何解决?

What is causing this problem, and how do I to fix it?

如果我再次重新安装 MonoTouch 3.2.6 版,那么我的应用程序可以正常工作,但是一旦我更新到 MonoTouch 4.0,我就会遇到同样的问题.

If I re-install MonoTouch version 3.2.6 again, then my application works correctly, but as soon as I update to MonoTouch 4.0, I run into the same problem.

推荐答案

您的问题缺乏很多细节来帮助我们为您提供帮助,但您应该尝试以下两件事:

Your question lacks many details to help us help you, but here's two things you should try:

1) 为 MonoTouch 3.x 中的 WCF 所做的一些修复(遗憾的是)缺失 来自 MonoTouch 4.x.您的应用程序可能依赖于它们.如果您使用 MonoTouch 4.1,那么您可以替换您的 System.ServiceModel.dll(请参阅上述链接的第 6 条评论),重建您的应用程序并查看此修复程序是否能解决您的问题.

1) Some fixes made for WCF inside MonoTouch 3.x were (sadly) missing from MonoTouch 4.x. It's possible that your application depended on them. If you use MonoTouch 4.1 then you can replace your System.ServiceModel.dll (see comment #6 of the above link), rebuild your application and see if this fix solves your issue.

2) 针对 MonoTouch 4.2(即将发布,但大多数不在 4.1 测试版中)的 HTTP 堆栈中进行了一些修复.它们并不完全与 WCF 相关,但不清楚您的 400 错误消息是否是 WCF 故障(或不是).

2) Several fixes were made in the HTTP stack for MonoTouch 4.2 (soon to be released, but most are not in the 4.1 beta). They are not exactly WCF-related but it's not clear if your 400 error message is a WCF failure (or not).

如果两个更新都没有解决您的问题,请在 http://bugzilla.xamarin.com 填写错误报告a> 并附上一个独立的测试用例,以便我们可以进一步调查.谢谢!

If both updates do not solve your issue then please fill a bug report at http://bugzilla.xamarin.com and attach a self-contained test case so we can investigate this further. Thanks!

这篇关于尝试访问 WCF 服务时的最新 MonoTouch 4.0 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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