简体   繁体   English

MonoDroid EndpointNotFoundException

[英]MonoDroid EndpointNotFoundException

I'm calling a web service using client code that I generated using Microsoft's slsvcutil. 我正在使用使用Microsoft的slsvcutil生成的客户端代码来调用Web服务。 No matter what call I make, I'm getting an EndpointNotFoundException. 无论我打什么电话,我都会遇到EndpointNotFoundException。 Stack trace is below. 堆栈跟踪如下。 The service is running on my local machine. 该服务正在我的本地计算机上运行。 I'm able to successfully make identical calls from a MonoTouch application using the same generated client code and the same web service. 我能够使用相同的生成的客户端代码和相同的Web服务从MonoTouch应用程序成功进行相同的调用。

I'm running Mono for Android 4.2.6 Monotouch 5.9.9.4 Mono 2.10.9 我正在为Android 4.2.6运行Mono,Monotouch 5.9.9.4 Mono 2.10.9

Anyone else seeing this? 还有其他人看到吗?

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

This appears to have been the result of a networking configuration. 这似乎是网络配置的结果。

The difference that seems to have allowed the MonoTouch application to work where Android did not was that I had the Android application running on a device (connecting to the web service over the network) where the MonoTouch application was running from a simulator on the same machine as the web service. 似乎使MonoTouch应用程序无法在Android上运行的差异是,我让Android应用程序运行在通过同一台计算机上的模拟器运行MonoTouch应用程序的设备上(通过网络连接到Web服务)作为网络服务。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 [EndpointNotFoundException:没有端点监听 - [EndpointNotFoundException: There was no endpoint listening at Web服务返回EndPointNotFoundException - Webservice returns EndPointNotFoundException Web服务和Monodroid - Webservice and Monodroid Web服务抛出错误System.ServiceModel.EndpointNotFoundException - webservice throws error System.ServiceModel.EndpointNotFoundException 在IIS上使用WCF服务时引发System.ServiceModel.EndpointNotFoundException - System.ServiceModel.EndpointNotFoundException thrown when consuming wcf service on IIS 来自网站的webservice调用中的EndpointNotFoundException,但不是来自控制台应用程序 - EndpointNotFoundException in webservice call from website, but not from console application Windows phone 7,silverlight - 如何在调用异步Web服务时捕获EndpointNotFoundException? - Windows phone 7, silverlight - How to catch EndpointNotFoundException when calling async web service? WCF - 从另一个 Web 应用程序(WCF 或 REST API)调用时出现 EndpointNotFoundException - WCF - EndpointNotFoundException when calling from another Web Application (WCF or REST API) 捕获“&#39;System.ServiceModel.EndpointNotFoundException”异步Web服务调用期间发生异常 - Catching " 'System.ServiceModel.EndpointNotFoundException' Exception happening during asynchronous web service call Webservice返回广告页面,而不是Monodroid应用程序中的数据 - Webservice returns an ad page instead of data in monodroid app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM