none
Xamarin呼叫WCF擲回System.ServiceModel.EndpointNotFoundException: 'System error RRS feed

  • 問題

  • 請問Xamarin呼叫WCF擲回System.ServiceModel.EndpointNotFoundException: 'System error.'應該怎樣修改才不會出現這樣的錯誤

    完整錯誤字串如下

    {System.ServiceModel.EndpointNotFoundException: System error. ---> System.Net.WebException: Error: NameResolutionFailure  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00044] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.Net.WebOperation.Run () [0x0009a] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.Net.HttpWebRequest.EndGetRequestStream (System.IAsyncResult asyncResult) [0x00020] in <ca7419b40e504a6dbe088f6fe95d09aa>:0   at System.ServiceModel.Channels.HttpRequestChannel+<>c__DisplayClass8_1.<BeginProcessRequest>b__0 (System.IAsyncResult r) [0x0001d] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0    --- End of inner exception stack trace ---  at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00029] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (System.IAsyncResult result) [0x0000e] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, System.TimeSpan timeout) [0x0000b] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, System.TimeSpan timeout) [0x0000e] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Boolean isAsync, System.Object[]& parameters, System.ServiceModel.OperationContext context) [0x00071] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Boolean isAsync, System.Object[]& parameters, System.ServiceModel.OperationContext context) [0x00031] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Boolean isAsync, System.Object[]& parameters, System.ServiceModel.OperationContext context) [0x0001e] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters, System.ServiceModel.OperationContext context) [0x00002] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.ClientRealProxy.DoInvoke (System.Runtime.Remoting.Messaging.IMessage inputMessage) [0x000d5] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.ServiceModel.ClientRealProxy.Invoke (System.Runtime.Remoting.Messaging.IMessage inputMessage) [0x00000] in <6fd1a53b91504e5ead8b8cbaa9ed1e83>:0   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object

    2019年9月16日 上午 01:21

所有回覆