在我的应用程序中,我尝试连接到OpcUa服务器。在Unity模式下,连接按预期工作,但在为Android构建并运行应用程序时,我得到以下错误:
PlatformNotSupportedException: Operation is not supported on this platform.
08-13 19:10:13.635 8047 8071 E Unity : at Opc.Ua.Bindings.BufferManager..ctor (System.String name, System.Int32 maxPoolSize, System.Int32 maxBufferSize) [0x0001a] in <47abe48abf58405785b9c72f0d4f7649>:0
08-13 19:10:13.635 8047 8071 E Unity : at Opc.Ua.Bindings.UaSCUaBinaryTransportChannel.SaveSettings (System.Uri url, Opc.Ua.TransportChannelSettings settings) [0x001a6] in <47abe48abf58405785b9c72f0d4f7649>:0
08-13 19:10:13.635 8047 8071 E Unity : at Opc.Ua.Bindings.UaSCUaBinaryTransportChannel.Initialize (System.Uri url, Opc.Ua.TransportChannelSettings settings) [0x00001] in <47abe48abf58405785b9c72f0d4f7649>:0
08-13 19:10:13.635 8047 8071 E Unity : at Opc.Ua.WcfChannelBase.CreateUaBinaryChannel (Opc.Ua.ApplicationConfiguration configuration, Opc.Ua.EndpointDescription description, Opc.Ua.EndpointConfiguration endpointConfiguration, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, System.Security.Cryptography.X509Certificates.X509Certificate2Collection clientCertificateChain, Opc.Ua.ServiceMessageContext messageContext) [0x00156] in <47abe48ab我认为这是由这句话引发的:
endpointDescription = CoreClientUtils.SelectEndpoint(endpointURL, UseSecurity, ConnectTimeout);不幸的是,我在解决方案资源管理器中找不到包含"UaSCUaBinaryTransportChannel“、”最大池大小“或错误中包含的其他关键字的任何文件,因此我不知道如何删除它.
该项目的配置是单一的与.NET核心2,我将非常感谢每一个想法,谢谢!
发布于 2020-08-14 06:33:26
我想你是说.NET核心2?
在这种情况下,BufferManager类不可用。
PlatformNotSupportedException:此平台不支持操作。
发布于 2022-08-17 20:05:21
对于我来说,解决方案有时是不同的,请记住,我使用的是IL2CPP构建(而不是mono)。
git checkout -- NativeAndroidApp/.
https://stackoverflow.com/questions/63400954
复制相似问题