Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# DnsEndpointIdentity导致运行时错误System.NotImplementedException_C#_Xamarin.ios - Fatal编程技术网

C# DnsEndpointIdentity导致运行时错误System.NotImplementedException

C# DnsEndpointIdentity导致运行时错误System.NotImplementedException,c#,xamarin.ios,C#,Xamarin.ios,我正在尝试在Xamarin.iOS客户端和现有SOAP服务之间建立网络连接。为此,我必须在客户端预见服务的DNS标识。相应的命令是: DnsEndpointIdentity identity= new DnsEndpointIdentity("HelloWorldService"); 不幸的是,该命令导致运行时错误“System.NotImplementedException:该方法或操作未实现。”。该错误是由分配“HelloWorldService”引起的 对象DnsEndpointId

我正在尝试在Xamarin.iOS客户端和现有SOAP服务之间建立网络连接。为此,我必须在客户端预见服务的DNS标识。相应的命令是:

  DnsEndpointIdentity identity= new DnsEndpointIdentity("HelloWorldService");
不幸的是,该命令导致运行时错误“System.NotImplementedException:该方法或操作未实现。”。该错误是由分配“HelloWorldService”引起的

对象DnsEndpointIdentity属于assembly System.ServiceModel,它在版本2.0.5.0中可用于iOS

对我来说一切都很好,我不知道出了什么问题

我可以请你帮我吗

多谢各位


Stefan

在Xamarin的大多数情况下,如果您遇到“System.NotImplementedException:该方法或操作未实现”。这意味着它尚未在Xamarin.iOS的当前版本中实现。不幸的是,这是围绕SOAP服务的一个非常常见的问题,尤其是我使用的WCF服务。很多时候,它需要创建用于身份验证的自定义头。但这同样取决于什么对你有效