Wcf Service在Xamarin.forms中获取Android应用程序的数据时,它正在为Windows Phone工作。 它抛出以下错误。
{System.ServiceModel.EndpointNotFoundException:系统异常有 发生了。 ---> System.Net.WebException:错误:ConnectFailure (连接被拒绝)---> System.Net.Sockets.SocketException: System.Net.Sockets.Socket.Connect拒绝连接 (System.Net.EndPoint remoteEP)[0x000f1] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1251 在System.Net.WebConnection.Connect(System.Net.HttpWebRequest 请求)[0x0019b] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System/System.Net/WebConnection.cs:213
---内部异常堆栈跟踪结束---在System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult) asyncResult)[0x00043] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:818
在 System.ServiceModel.Channels.HttpRequestChannel + c__AnonStorey1<> m__0 (IAsyncResult r)[0x0001d] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:215
---内部异常堆栈跟踪结束---在System.ServiceModel.Channels.HttpRequestChannel + HttpChannelRequestAsyncResult.WaitEnd ()[0x00034] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:494
在System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult结果)[0x00029] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:349
在System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message消息,TimeSpan超时) [0x00000] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:72
在System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message消息,TimeSpan超时)[0x0000b] 在 /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:584
在System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od,Boolean isAsync,System.Object []&参数, System.ServiceModel.OperationContext context)[0x00069] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:536