首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在统一PlatformNotSupportedException/ OculusGo平台中修复“此平台不支持操作”

如何在统一PlatformNotSupportedException/ OculusGo平台中修复“此平台不支持操作”
EN

Stack Overflow用户
提问于 2020-08-13 18:11:01
回答 2查看 2.2K关注 0票数 1

在我的应用程序中,我尝试连接到OpcUa服务器。在Unity模式下,连接按预期工作,但在为Android构建并运行应用程序时,我得到以下错误:

代码语言:javascript
复制
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

我认为这是由这句话引发的:

代码语言:javascript
复制
endpointDescription = CoreClientUtils.SelectEndpoint(endpointURL, UseSecurity, ConnectTimeout);

不幸的是,我在解决方案资源管理器中找不到包含"UaSCUaBinaryTransportChannel“、”最大池大小“或错误中包含的其他关键字的任何文件,因此我不知道如何删除它.

该项目的配置是单一的与.NET核心2,我将非常感谢每一个想法,谢谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-08-14 06:33:26

我想你是说.NET核心2?

在这种情况下,BufferManager类不可用。

PlatformNotSupportedException:此平台不支持操作。

来源:https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.channels.buffermanager?view=dotnet-plat-ext-3.1&viewFallbackFrom=netcore-2.0

票数 0
EN

Stack Overflow用户

发布于 2022-08-17 20:05:21

对于我来说,解决方案有时是不同的,请记住,我使用的是IL2CPP构建(而不是mono)。

git checkout -- NativeAndroidApp/.

  • 清理生成,再试一次
  • 重置文件。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63400954

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档