首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MonoDroid EndpointNotFoundException

MonoDroid EndpointNotFoundException
EN

Stack Overflow用户
提问于 2012-09-20 01:31:14
回答 1查看 792关注 0票数 0

我正在使用我使用微软的slsvcutil生成的客户端代码调用web服务。不管我打什么电话,我都会收到一个EndpointNotFoundException。堆栈跟踪如下所示。该服务正在我的本地计算机上运行。我能够使用相同的生成的客户端代码和相同的web服务从MonoTouch应用程序成功地进行相同的调用。

我运行的是Mono for Android 4.2.6 Monotouch 5.9.9.4 Mono 2.10.9

还有人看到这个了吗?

代码语言:javascript
复制
System.ServiceModel.EndpointNotFoundException: A system exception has occurred. --->              System.Exception: Error: ConnectFailure (Network is unreachable) ---> System.Exception: Network is unreachable
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0
at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel+<BeginProcessRequest>c__AnonStorey7.<>m__1 (IAsyncResult r) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult result) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
EN

回答 1

Stack Overflow用户

发布于 2012-09-21 01:09:53

这似乎是网络配置的结果。

似乎允许MonoTouch应用程序在Android上运行的不同之处在于,我让Android应用程序在一台设备上运行(通过网络连接到web服务),其中MonoTouch应用程序运行在与web服务相同的机器上的模拟器上。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12499904

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档